Make sure mfenced delimiters are stretchy. Resolves issue #475.

This commit is contained in:
Davide P. Cervone 2013-05-21 19:53:28 -04:00
parent 90cd96cd53
commit a147a9ac32
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
MathJax.InputJax.TeX = MathJax.InputJax({ MathJax.InputJax.TeX = MathJax.InputJax({
id: "TeX", id: "TeX",
version: "2.2", version: "2.2.1",
directory: MathJax.InputJax.directory + "/TeX", directory: MathJax.InputJax.directory + "/TeX",
extensionDir: MathJax.InputJax.extensionDir + "/TeX", extensionDir: MathJax.InputJax.extensionDir + "/TeX",

View File

@ -2127,9 +2127,9 @@
mfenced: function (open,mml,close) { mfenced: function (open,mml,close) {
var mrow = MML.mrow(); var mrow = MML.mrow();
mrow.open = open; mrow.close = close; mrow.open = open; mrow.close = close;
if (open) {mrow.Append(MML.mo(open).With({fence:true, texClass:MML.TEXCLASS.OPEN}))} if (open) {mrow.Append(MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}))}
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)} if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
if (close) {mrow.Append(MML.mo(close).With({fence:true, texClass:MML.TEXCLASS.CLOSE}))} if (close) {mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}))}
return mrow; return mrow;
}, },