Skip to content

Commit fea2ab6

Browse files
authored
Merge pull request #809 from mathjax/fix-sideset
Wrap sideset in an TeXAtom of class OP
2 parents e18b0e0 + 5db81b9 commit fea2ab6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

ts/input/tex/ams/AmsMethods.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,19 @@ AmsMethods.SideSet = function (parser: TexParser, name: string) {
324324
mml = postScripts;
325325
}
326326
//
327-
// Push the needed pieces onto the stack.
327+
// Put the needed pieces into a TeXAtom of class OP.
328328
// Note that the postScripts are in the mml element,
329329
// either as part of the mmultiscripts node, or the
330330
// msubsup with the base inserted into it.
331331
//
332+
const mrow = parser.create('node', 'TeXAtom', [], {texClass: TEXCLASS.OP, movesupsub: true, movablelimits: true});
332333
if (preRest) {
333-
preScripts && parser.Push(preScripts);
334-
parser.Push(preRest);
334+
preScripts && mrow.appendChild(preScripts);
335+
mrow.appendChild(preRest);
335336
}
336-
parser.Push(mml);
337-
postRest && parser.Push(postRest);
337+
mrow.appendChild(mml);
338+
postRest && mrow.appendChild(postRest);
339+
parser.Push(mrow);
338340
};
339341

340342
/**

0 commit comments

Comments
 (0)