diff --git a/public/svg-edit/editor/extensions/ext-itex.js b/public/svg-edit/editor/extensions/ext-itex.js index 57599e1e..c8d20afc 100644 --- a/public/svg-edit/editor/extensions/ext-itex.js +++ b/public/svg-edit/editor/extensions/ext-itex.js @@ -75,7 +75,7 @@ $(function() { $.post(ajaxEndpoint, {'tex': tex, 'display': 'inline'}, function(data){ var children = data.documentElement.childNodes; while (children.length > 0) { - mrow.appendChild(children[0]); + mrow.appendChild(svgdoc.adoptNode(children[0], true)); } S.sanitizeSvg(math); S.call("changed", [elt]);