Skip to content

Commit 7c47e03

Browse files
committed
Merge branch 'stretchy' into v2.4-beta
2 parents beeb356 + d24b750 commit 7c47e03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unpacked/jax/input/TeX/jax.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,15 +1253,16 @@
12531253
* Handle other characters (as <mo> elements)
12541254
*/
12551255
Other: function (c) {
1256-
var def = {stretchy: false}, mo;
1257-
if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
1256+
var def, mo;
1257+
if (this.stack.env.font) {def = {mathvariant: this.stack.env.font}}
12581258
if (TEXDEF.remap[c]) {
12591259
c = TEXDEF.remap[c];
12601260
if (c instanceof Array) {def = c[1]; c = c[0]}
12611261
mo = MML.mo(MML.entity('#x'+c)).With(def);
12621262
} else {
12631263
mo = MML.mo(c).With(def);
12641264
}
1265+
if (mo.autoDefault("stretchy",true)) {mo.stretchy = false}
12651266
if (mo.autoDefault("texClass",true) == "") {mo = MML.TeXAtom(mo)}
12661267
this.Push(this.mmlToken(mo));
12671268
},

0 commit comments

Comments
 (0)