Skip to content

Commit 33d84d5

Browse files
authored
Merge pull request #698 from mathjax/minor-fixes
Trim delimiter for \big and friends, and put \math* in a TeXAtom (mathjax/MathJax#2688, mathjax/MathJax#2689)
2 parents 17d3a83 + a61bb47 commit 33d84d5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

ts/input/tex/TexParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export default class TexParser {
373373
c += this.GetCS();
374374
} else if (c === '{' && braceOK) {
375375
this.i--;
376-
c = this.GetArgument(name);
376+
c = this.GetArgument(name).trim();
377377
}
378378
if (this.contains('delimiter', c)) {
379379
return this.convertDelimiter(c);

ts/input/tex/base/BaseMethods.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,7 @@ BaseMethods.MathFont = function(parser: TexParser, name: string, variant: string
283283
font: variant,
284284
multiLetterIdentifiers: true
285285
}, parser.configuration).mml();
286-
if (mml.isKind('inferredMrow')) {
287-
mml = parser.create('node', 'mrow', mml.childNodes);
288-
}
289-
parser.Push(mml);
286+
parser.Push(parser.create('node', 'TeXAtom', [mml]));
290287
};
291288

292289
/**

0 commit comments

Comments
 (0)