Move main node cleanup back
Summary: If someone wants the node to be cleared out, they will have to do it themselves. Auditors: alpert
This commit is contained in:
parent
62b4e68a1c
commit
e744b02090
2
katex.js
2
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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user