Don't unwrap mrow when created fenced elements (in case attributes have been attached to the mrow). Resolves issue #1415.
This commit is contained in:
parent
8c51621661
commit
f067eccd30
|
@ -2210,9 +2210,11 @@
|
||||||
*/
|
*/
|
||||||
fenced: function (open,mml,close) {
|
fenced: function (open,mml,close) {
|
||||||
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER});
|
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}));
|
mrow.Append(
|
||||||
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
|
MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}),
|
||||||
mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}));
|
mml,
|
||||||
|
MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE})
|
||||||
|
);
|
||||||
return mrow;
|
return mrow;
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user