From f067eccd301c49e47094f245903155287670862b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 7 Jun 2016 16:01:23 -0400 Subject: [PATCH] Don't unwrap mrow when created fenced elements (in case attributes have been attached to the mrow). Resolves issue #1415. --- unpacked/jax/input/TeX/jax.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 8463c8be3..26c46275e 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -2210,9 +2210,11 @@ */ fenced: function (open,mml,close) { var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER}); - 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)} - mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE})); + mrow.Append( + MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}), + mml, + MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}) + ); return mrow; }, /*