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

This commit is contained in:
Davide P. Cervone 2015-07-20 15:10:41 -04:00
parent a33c5d1437
commit 26ebc33c37

View File

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