We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents beeb356 + d24b750 commit 7c47e03Copy full SHA for 7c47e03
unpacked/jax/input/TeX/jax.js
@@ -1253,15 +1253,16 @@
1253
* Handle other characters (as <mo> elements)
1254
*/
1255
Other: function (c) {
1256
- var def = {stretchy: false}, mo;
1257
- if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
+ var def, mo;
+ if (this.stack.env.font) {def = {mathvariant: this.stack.env.font}}
1258
if (TEXDEF.remap[c]) {
1259
c = TEXDEF.remap[c];
1260
if (c instanceof Array) {def = c[1]; c = c[0]}
1261
mo = MML.mo(MML.entity('#x'+c)).With(def);
1262
} else {
1263
mo = MML.mo(c).With(def);
1264
}
1265
+ if (mo.autoDefault("stretchy",true)) {mo.stretchy = false}
1266
if (mo.autoDefault("texClass",true) == "") {mo = MML.TeXAtom(mo)}
1267
this.Push(this.mmlToken(mo));
1268
},
0 commit comments