diff --git a/unpacked/extensions/TeX/mathchoice.js b/unpacked/extensions/TeX/mathchoice.js index 8270a9d81..63d9adae5 100644 --- a/unpacked/extensions/TeX/mathchoice.js +++ b/unpacked/extensions/TeX/mathchoice.js @@ -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; } });