From 98e3f098bd519dabe9bf558736c5bf6438fbc217 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Sep 2014 12:52:10 -0400 Subject: [PATCH] Add rules to mtable to properly handle displaystyle and scriptlevel as described in the MathML spec. Resolves issue #839. --- unpacked/jax/element/mml/jax.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js index b0a7add04..b4e27cc40 100644 --- a/unpacked/jax/element/mml/jax.js +++ b/unpacked/jax/element/mml/jax.js @@ -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 } },