www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 243141db7c035b61342a52fd3094911c7b378d4d
parent dabec97691d347c3d251fc32c2b4e0f8e5d71744
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 15 Feb 2014 12:37:30 -0500

Merge branch 'issue328' into develop.  Issue #328.

Diffstat:
Munpacked/extensions/mml2jax.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unpacked/extensions/mml2jax.js b/unpacked/extensions/mml2jax.js @@ -167,7 +167,7 @@ MathJax.Extension.mml2jax = { html = "<"+node.nodeName.toLowerCase(); for (i = 0, m = node.attributes.length; i < m; i++) { var attribute = node.attributes[i]; - if (attribute.specified) { + if (attribute.specified && attribute.nodeName.substr(0,10) !== "_moz-math-") { // Opera 11.5 beta turns xmlns into xmlns:xmlns, so put it back (*** check after 11.5 is out ***) html += " "+attribute.nodeName.toLowerCase().replace(/xmlns:xmlns/,"xmlns")+"="; var value = attribute.nodeValue; // IE < 8 doesn't properly set style by setAttributes @@ -250,10 +250,12 @@ 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");