From 593a393bfc6d551c0e659c2d230d995136c49210 Mon Sep 17 00:00:00 2001 From: Peter Krautzberger Date: Fri, 4 Sep 2015 10:21:34 +0200 Subject: [PATCH] Improve RTL support in HTML-CSS Add CSS to prevent browser interference --- unpacked/extensions/MathML/mml3.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unpacked/extensions/MathML/mml3.js b/unpacked/extensions/MathML/mml3.js index 575953eea..e3a4eb3e1 100644 --- a/unpacked/extensions/MathML/mml3.js +++ b/unpacked/extensions/MathML/mml3.js @@ -121,6 +121,9 @@ MathJax.Hub.Register.StartupHook("MathML Jax Ready",function () { // No XSLT support. Do not change the content. MATHML.mml3XSLT = null; } + + // Tweak CSS to avoid some browsers rearranging HTML output + MathJax.Ajax.Styles(".MathJax span { direction: ltr !important; display: inline-block !important;}"); MathJax.Hub.Startup.signal.Post("MathML mml3.js Ready"); });