Skip to content

Commit f067ecc

Browse files
committed
Don't unwrap mrow when created fenced elements (in case attributes have been attached to the mrow). Resolves issue mathjax#1415.
1 parent 8c51621 commit f067ecc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

unpacked/jax/input/TeX/jax.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -2210,9 +2210,11 @@
22102210
*/
22112211
fenced: function (open,mml,close) {
22122212
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER});
2213-
mrow.Append(MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}));
2214-
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
2215-
mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}));
2213+
mrow.Append(
2214+
MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}),
2215+
mml,
2216+
MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE})
2217+
);
22162218
return mrow;
22172219
},
22182220
/*

0 commit comments

Comments
 (0)