www

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

commit 26ebc33c37762f625d07c11f6c2260d0043f7ed6
parent a33c5d14371b1332ea06759ef71d1174ef505560
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 20 Jul 2015 15:10:41 -0400

Treat missing super- or subscript as <none/> when not properly paired in multiscripts.  (Issue 1188)

Diffstat:
Munpacked/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 @@ -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; }, //