Add rules to mtable to properly handle displaystyle and scriptlevel as described in the MathML spec. Resolves issue #839.

This commit is contained in:
Davide P. Cervone 2014-09-11 12:52:10 -04:00
parent 74253a955f
commit 98e3f098bd

View File

@ -1135,6 +1135,10 @@ MathJax.ElementJax.mml.Augment({
texClass: MML.TEXCLASS.ORD,
useHeight: 1
},
adjustChild_displaystyle: function () {
return (this.displaystyle != null ? this.displaystyle : this.defaults.displaystyle);
},
adjustChild_scriptlevel: function () {return 0},
inheritFromMe: true,
noInherit: {
mover: {align: true},
@ -1144,7 +1148,7 @@ MathJax.ElementJax.mml.Augment({
align: true, rowalign: true, columnalign: true, groupalign: true,
alignmentscope: true, columnwidth: true, width: true, rowspacing: true,
columnspacing: true, rowlines: true, columnlines: true, frame: true,
framespacing: true, equalrows: true, equalcolumns: true,
framespacing: true, equalrows: true, equalcolumns: true, displaystyle: true,
side: true, minlabelspacing: true, texClass: true, useHeight: 1
}
},