From 11f617c51677136089727d266b3d2480f12eadbc Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 7 Jun 2016 15:50:49 -0400 Subject: [PATCH] Don't do assistive MathML when the output renderer is PlainSource. Resolves issue #1497. --- unpacked/extensions/AssistiveMML.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacked/extensions/AssistiveMML.js b/unpacked/extensions/AssistiveMML.js index 6d6dea6f8..ce320454f 100644 --- a/unpacked/extensions/AssistiveMML.js +++ b/unpacked/extensions/AssistiveMML.js @@ -115,7 +115,8 @@ while (state.i < m) { jax = state.jax[state.i]; 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 { mml = jax.root.toMathML("").replace(/\n */g,"").replace(//g,""); } catch (err) {