Skip to content

Commit 153387d

Browse files
authored
Merge pull request #1514 from dpvc/issue1415
Don't unwrap mrow when created fenced elements. #1415
2 parents dd32c56 + 189239a commit 153387d

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
@@ -2216,9 +2216,11 @@
22162216
*/
22172217
fenced: function (open,mml,close) {
22182218
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER});
2219-
mrow.Append(MML.mo(open).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.OPEN}));
2220-
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
2221-
mrow.Append(MML.mo(close).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.CLOSE}));
2219+
mrow.Append(
2220+
MML.mo(open).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.OPEN}),
2221+
mml,
2222+
MML.mo(close).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.CLOSE})
2223+
);
22222224
return mrow;
22232225
},
22242226
/*

0 commit comments

Comments
 (0)