Added support for \mathchoice now that the old CommonHTML is named PreviewHTML.

This commit is contained in:
Davide P. Cervone 2015-09-18 15:58:50 -04:00
parent 65d9ee1160
commit 358e79765c

View File

@ -90,6 +90,13 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
this.CHTMLhandleColor(node);
this.CHTMLaddChild(node,this.choice(),{});
return node;
},
toPreviewHTML: function(span) {
span = this.PHTMLcreateSpan(span);
this.PHTMLhandleStyle(span);
this.PHTMLhandleColor(span);
this.PHTMLaddChild(span,this.choice(),{});
return span;
}
});