commit ef596f650d5b718c055d615df948330cb59d801d
parent f1be0de1d636094f977c63554d4a6607d7e03cb6
Author: Frédéric Wang <fred.wang@free.fr>
Date: Wed, 7 Aug 2013 13:34:07 +0200
Decrease the priority of the mml2jax preprocessors, so that the ASCIIMath/TeX/jsMath annotations inside MathML are not parsed. Fix issue #484.
Diffstat:
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/unpacked/extensions/asciimath2jax.js b/unpacked/extensions/asciimath2jax.js
@@ -230,5 +230,10 @@ MathJax.Extension.asciimath2jax = {
};
+// We register the preprocessors with the following priorities:
+// - mml2jax.js: 5
+// - jsMath2jax.js: 8
+// - asciimath2jax.js, tex2jax.js: 10 (default)
+// See issues 18 and 484 and the other *2jax.js files.
MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);
MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js");
diff --git a/unpacked/extensions/jsMath2jax.js b/unpacked/extensions/jsMath2jax.js
@@ -93,5 +93,10 @@ MathJax.Extension.jsMath2jax = {
};
+// We register the preprocessors with the following priorities:
+// - mml2jax.js: 5
+// - jsMath2jax.js: 8
+// - asciimath2jax.js, tex2jax.js: 10 (default)
+// See issues 18 and 484 and the other *2jax.js files.
MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.jsMath2jax],8);
MathJax.Ajax.loadComplete("[MathJax]/extensions/jsMath2jax.js");
diff --git a/unpacked/extensions/mml2jax.js b/unpacked/extensions/mml2jax.js
@@ -207,5 +207,10 @@ MathJax.Extension.mml2jax = {
};
-MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax]);
+// We register the preprocessors with the following priorities:
+// - mml2jax.js: 5
+// - jsMath2jax.js: 8
+// - asciimath2jax.js, tex2jax.js: 10 (default)
+// See issues 18 and 484 and the other *2jax.js files.
+MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax,5]);
MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js");
diff --git a/unpacked/extensions/tex2jax.js b/unpacked/extensions/tex2jax.js
@@ -300,5 +300,10 @@ MathJax.Extension.tex2jax = {
};
+// We register the preprocessors with the following priorities:
+// - mml2jax.js: 5
+// - jsMath2jax.js: 8
+// - asciimath2jax.js, tex2jax.js: 10 (default)
+// See issues 18 and 484 and the other *2jax.js files.
MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.tex2jax]);
MathJax.Ajax.loadComplete("[MathJax]/extensions/tex2jax.js");