Fixing export with math

This commit is contained in:
benweet 2016-03-01 00:38:52 +00:00
parent c8d2257f03
commit 57f8fb96f3

View File

@ -233,7 +233,7 @@ define([
_.each(previewContentsElt.children, function(elt) {
if(!elt.exportableHtml) {
var clonedElt = elt.cloneNode(true);
_.each(clonedElt.querySelectorAll('.MathJax, .MathJax_Display, .MathJax_Preview'), function(elt) {
_.each(clonedElt.querySelectorAll('.MathJax_SVG, .MathJax_SVG_Display, .MathJax_Preview'), function(elt) {
elt.parentNode.removeChild(elt);
});
elt.exportableHtml = clonedElt.innerHTML;