From 26ebc33c37762f625d07c11f6c2260d0043f7ed6 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 20 Jul 2015 15:10:41 -0400 Subject: [PATCH] Treat missing super- or subscript as when not properly paired in multiscripts. (Issue 1188) --- unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js b/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js index c49710e38..fcfda3b6f 100644 --- a/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js +++ b/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js @@ -175,7 +175,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // CHTMLaddScript: function (type,state) { var BOX, BBOX, data = this.data[state.i]; - if (data && data.type !== "none") { + if (data && data.type !== "none" && data.type !== "mprescripts") { BOX = state.BOX[type]; if (!BOX) { BOX = state.BOX[type] = HTML.Element("mjx-"+type); @@ -188,7 +188,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { data.toCommonHTML(BOX); BBOX = data.CHTML; } - state.i++; + if (data && data.type !== "mprescripts") state.i++; return BBOX; }, //