Added support for \mathchoice now that the old CommonHTML is named PreviewHTML.
This commit is contained in:
parent
65d9ee1160
commit
358e79765c
|
@ -85,11 +85,18 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
|
||||||
return svg;
|
return svg;
|
||||||
},
|
},
|
||||||
toCommonHTML: function (node) {
|
toCommonHTML: function (node) {
|
||||||
node = this.CHTMLcreateNode(node);
|
node = this.CHTMLcreateNode(node);
|
||||||
this.CHTMLhandleStyle(node);
|
this.CHTMLhandleStyle(node);
|
||||||
this.CHTMLhandleColor(node);
|
this.CHTMLhandleColor(node);
|
||||||
this.CHTMLaddChild(node,this.choice(),{});
|
this.CHTMLaddChild(node,this.choice(),{});
|
||||||
return node;
|
return node;
|
||||||
|
},
|
||||||
|
toPreviewHTML: function(span) {
|
||||||
|
span = this.PHTMLcreateSpan(span);
|
||||||
|
this.PHTMLhandleStyle(span);
|
||||||
|
this.PHTMLhandleColor(span);
|
||||||
|
this.PHTMLaddChild(span,this.choice(),{});
|
||||||
|
return span;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user