Mark functions that are turned into TEXCLASS.OP so that spacing can be improved for things that look like \left...\right.
This commit is contained in:
parent
09ce98092b
commit
1e9dcb81f8
|
@ -610,7 +610,7 @@ MathJax.ElementJax.mml.Augment({
|
||||||
this.texClass = this.Get("texClass");
|
this.texClass = this.Get("texClass");
|
||||||
if (this.data.join("") === "\u2061") {
|
if (this.data.join("") === "\u2061") {
|
||||||
// force previous node to be texClass OP, and skip this node
|
// force previous node to be texClass OP, and skip this node
|
||||||
if (prev) prev.texClass = MML.TEXCLASS.OP;
|
if (prev) {prev.texClass = MML.TEXCLASS.OP; prev.fnOP = true}
|
||||||
this.texClass = this.prevClass = MML.TEXCLASS.NONE;
|
this.texClass = this.prevClass = MML.TEXCLASS.NONE;
|
||||||
return prev;
|
return prev;
|
||||||
}
|
}
|
||||||
|
@ -752,7 +752,7 @@ MathJax.ElementJax.mml.Augment({
|
||||||
},
|
},
|
||||||
setTeXclass: function (prev) {
|
setTeXclass: function (prev) {
|
||||||
var i, m = this.data.length;
|
var i, m = this.data.length;
|
||||||
if (this.open || this.close) {
|
if ((this.open || this.close) && (!prev || !prev.fnOP)) {
|
||||||
//
|
//
|
||||||
// <mrow> came from \left...\right
|
// <mrow> came from \left...\right
|
||||||
// so treat as subexpression (tex class INNER)
|
// so treat as subexpression (tex class INNER)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user