Treat missing super- or subscript as <none/> when not properly paired in multiscripts. (Issue 1188)
This commit is contained in:
parent
a33c5d1437
commit
26ebc33c37
|
@ -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;
|
||||
},
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user