Don't do assistive MathML when the output renderer is PlainSource. Resolves issue #1497.
This commit is contained in:
parent
8c51621661
commit
11f617c516
|
@ -115,7 +115,8 @@
|
||||||
while (state.i < m) {
|
while (state.i < m) {
|
||||||
jax = state.jax[state.i];
|
jax = state.jax[state.i];
|
||||||
frame = document.getElementById(jax.inputID+"-Frame");
|
frame = document.getElementById(jax.inputID+"-Frame");
|
||||||
if (jax.outputJax !== "NativeMML" && frame && !frame.getAttribute("data-mathml")) {
|
if (jax.outputJax !== "NativeMML" && jax.outputJax !== "PlainSource" &&
|
||||||
|
frame && !frame.getAttribute("data-mathml")) {
|
||||||
try {
|
try {
|
||||||
mml = jax.root.toMathML("").replace(/\n */g,"").replace(/<!--.*?-->/g,"");
|
mml = jax.root.toMathML("").replace(/\n */g,"").replace(/<!--.*?-->/g,"");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user