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

@ -85,11 +85,18 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
return svg;
},
toCommonHTML: function (node) {
node = this.CHTMLcreateNode(node);
this.CHTMLhandleStyle(node);
this.CHTMLhandleColor(node);
this.CHTMLaddChild(node,this.choice(),{});
return node;
node = this.CHTMLcreateNode(node);
this.CHTMLhandleStyle(node);
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;
}
});