From e744b02090a6f6280380e0c584780a3d4646643b Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Fri, 26 Jul 2013 13:41:29 -0700 Subject: [PATCH] Move main node cleanup back Summary: If someone wants the node to be cleared out, they will have to do it themselves. Auditors: alpert --- katex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/katex.js b/katex.js index f9f63efae..34c4d972a 100644 --- a/katex.js +++ b/katex.js @@ -248,7 +248,6 @@ var clearNode = function(node) { }; var process = function(toParse, baseNode) { - clearNode(baseNode); var tree = parseTree(toParse); var style = Style.TEXT; @@ -256,6 +255,7 @@ var process = function(toParse, baseNode) { var span = makeSpan(style.cls(), expression); var katexNode = makeSpan("katex", [span]); + clearNode(baseNode); baseNode.appendChild(katexNode); };