Before JS code for LTR
Math extension equations in RTL wikis is not left aligned.
Using a javascript codeIn wikis with RTL (right-to-left) content, if a line only contains a `<math>` tag, this problem is solved in Persian Wikipedia
http://fa.wikipedia.org/wiki/%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Common.jit should be left-aligned. Right now, this is
/**
* قرار دادن فرمولهای ریاضی در سمت چپ مناسب برای ویکیهای راست به چپ
*/
$(function(){
$("img.tex, span.texhtml").each(function () {
if($(this).parent().text().trim() == $(this).text() && $(this).parent().is("p,dd"))
$(this).parent().css({direction: "ltr", padding: "1em 0"});
});
});Observed:
{F7991}
but it is just a little hacky so in my opinion it is better to solve it in in mediawiki core.Expected:
--------------------------
**Version**: 1.21.x
**Severity**: normal{F7992}
**Attached**: {F7991}This is currently achieved by a hack in [[ https://fa.wikipedia.org/wiki/%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Common.js | FA WP Common.js ]] which identifies `<p>` or `<dd>` elements that only contian a `<math>` element, and applying a CSS modification to the `p` or `dd`, namely setting `direction` to `ltr`.