Escape braces in mathPalette (avoids error with \brace).

This commit is contained in:
Davide P. Cervone 2014-12-28 06:30:18 -05:00
parent 91875b3558
commit de9c66f927

View File

@ -2200,6 +2200,7 @@
return mrow;
},
mathPalette: function (fence,side) {
if (fence === '{' || fence === '}') {fence = "\\"+fence}
var D = '{\\bigg'+side+' '+fence+'}', T = '{\\big'+side+' '+fence+'}';
return TEX.Parse('\\mathchoice'+D+T+T+T).mml();
},