We have math in HTML produced by LaTeXML, looking like this:
<math alttext="\widehat{}\;\;:\mathcal{A}\longrightarrow
C(\bigtriangleup)" display="inline">
<semantics>
<mrow><mover accent="true"><none/><mo>^</mo></mover><mo>:</
mo><mrow><mi mathvariant="script">A</mi><mo>⟶</mo><mrow><mi>C</
mi><mo></mo><mfenced open="(" close=")"><mo>△</mo></mfenced></mrow></
mrow></mrow>
<annotation-xml encoding="MathML-Content"><apply xmlns="http://
www.w3.org/1998/Math/MathML"><ci>:</ci><apply><ci>^</ci><csymbol
cd="latexml">absent</csymbol></apply><apply><ci>⟶</ci><ci>A</
ci><apply><times/><ci>C</ci><ci>△</ci></apply></apply></apply></
annotation-xml>
<annotation encoding="application/x-tex">\widehat{}\;\;:\mathcal{A}
\longrightarrow C(\bigtriangleup)</annotation>
</semantics>
</math>
Our question is: how to get MathJaX to just process the MathML
representations, rather than the LaTeX representation embedded within
the MathML?
An example page is here:
http://metameso.org/q/chapter3part1thecalculusbydavisandbrenke
If you load that in Chrome, you see al the LaTeX formulas in grey
before the page is finished rendering.
Right now, we're including
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML
along with the following JavaScript:
if (!jQuery.browser.mozilla) {
MathJax.Hub.Register.StartupHook("MathML Jax Ready", function() {
var PARSE = MathJax.InputJax.MathML.Parse;
var oldMakeMML = PARSE.prototype.MakeMML;
PARSE.Augment({
MakeMML : function(node) {
if (node.hasAttribute("type")) {
node.removeAttribute("type")
}
return oldMakeMML.apply(this, arguments);
}
});
});
}
This all seemed to work well until we added the TeX annotations. Any
advice would be appreciated!