commit 358e79765ca80fb570f073853a4f480b5ad1ff13
parent 65d9ee1160530d1fa477d24800f4cdd493b31561
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 18 Sep 2015 15:58:50 -0400
Added support for \mathchoice now that the old CommonHTML is named PreviewHTML.
Diffstat:
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git 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;
}
});