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:
Davide P. Cervone 2016-06-07 16:01:23 -04:00
parent 8c51621661
commit f067eccd30

View File

@ -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;
},
/*