From e4265d3969961cf38dce23f7694d97806aa95a79 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" <dpvc@union.edu> Date: Wed, 7 Jan 2015 08:30:48 -0500 Subject: [PATCH] Implement toCommonHTML for \mathchoice. Resolves issue #998. --- unpacked/extensions/TeX/mathchoice.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unpacked/extensions/TeX/mathchoice.js b/unpacked/extensions/TeX/mathchoice.js index 9c6e35833..6d997e363 100644 --- a/unpacked/extensions/TeX/mathchoice.js +++ b/unpacked/extensions/TeX/mathchoice.js @@ -79,6 +79,13 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { var svg = this.Core().toSVG(); this.SVGsaveData(svg); return svg; + }, + toCommonHTML: function (span) { + span = this.CHTMLcreateSpan(span); + this.CHTMLhandleStyle(span); + this.CHTMLhandleColor(span); + this.CHTMLaddChild(span,this.choice(),{}); + return span; } });