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:
Davide P. Cervone 2014-05-04 15:27:39 -04:00
parent 09ce98092b
commit 1e9dcb81f8

View File

@ -610,7 +610,7 @@ MathJax.ElementJax.mml.Augment({
this.texClass = this.Get("texClass");
if (this.data.join("") === "\u2061") {
// 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;
return prev;
}
@ -752,7 +752,7 @@ MathJax.ElementJax.mml.Augment({
},
setTeXclass: function (prev) {
var i, m = this.data.length;
if (this.open || this.close) {
if ((this.open || this.close) && (!prev || !prev.fnOP)) {
//
// <mrow> came from \left...\right
// so treat as subexpression (tex class INNER)