Don't combine <mo> elements with different variantForms (since the whole element must have the same mathvariant and font)
This commit is contained in:
parent
74cb04a9e0
commit
e2d328dd32
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -12,5 +12,5 @@
|
|||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
|
||||
MathJax.InputJax.TeX=MathJax.InputJax({id:"TeX",version:"1.1.3",directory:MathJax.InputJax.directory+"/TeX",extensionDir:MathJax.InputJax.extensionDir+"/TeX",config:{TagSide:"right",TagIndent:"0.8em",MultLineWidth:"85%"}});MathJax.InputJax.TeX.Register("math/tex");MathJax.InputJax.TeX.loadComplete("config.js");
|
||||
MathJax.InputJax.TeX=MathJax.InputJax({id:"TeX",version:"1.1.4",directory:MathJax.InputJax.directory+"/TeX",extensionDir:MathJax.InputJax.extensionDir+"/TeX",config:{TagSide:"right",TagIndent:"0.8em",MultLineWidth:"85%"}});MathJax.InputJax.TeX.Register("math/tex");MathJax.InputJax.TeX.loadComplete("config.js");
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,7 @@
|
|||
|
||||
MathJax.InputJax.TeX = MathJax.InputJax({
|
||||
id: "TeX",
|
||||
version: "1.1.3",
|
||||
version: "1.1.4",
|
||||
directory: MathJax.InputJax.directory + "/TeX",
|
||||
extensionDir: MathJax.InputJax.extensionDir + "/TeX",
|
||||
|
||||
|
|
|
@ -1744,14 +1744,17 @@
|
|||
},
|
||||
|
||||
combineRelations: function (mml) {
|
||||
for (var i = 0, m = mml.data.length; i < m; i++) {
|
||||
var i, m, m1, m2;
|
||||
for (i = 0, m = mml.data.length; i < m; i++) {
|
||||
if (mml.data[i]) {
|
||||
if (mml.isa(MML.mrow)) {
|
||||
while (i+1 < m && mml.data[i+1] &&
|
||||
mml.data[i].isa(MML.mo) && mml.data[i+1].isa(MML.mo) &&
|
||||
mml.data[i].Get("texClass") === MML.TEXCLASS.REL &&
|
||||
mml.data[i+1].Get("texClass") === MML.TEXCLASS.REL) {
|
||||
mml.data[i].Append.apply(mml.data[i],mml.data[i+1].data);
|
||||
while (i+1 < m && (m1 = mml.data[i]) && (m2 = mml.data[i+1]) &&
|
||||
m1.isa(MML.mo) && m2.isa(MML.mo) &&
|
||||
m1.Get("texClass") === MML.TEXCLASS.REL &&
|
||||
m2.Get("texClass") === MML.TEXCLASS.REL &&
|
||||
m1.style == m2.style && m1.className == m2.className &&
|
||||
m1.variantForm == m2.variantForm) {
|
||||
m1.Append.apply(m1,m2.data);
|
||||
mml.data.splice(i+1,1); m--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user