Remove tree cloning before building HTML (#1470)

* Reset `supSub.value.base` after building `supSubGroup`

* Remove tree cloning before building HTML

`buildExpression` is no longer destructive, added comment regarding it,
This commit is contained in:
ylemkimon
2018-07-12 00:28:56 +09:00
committed by GitHub
parent 35aece7763
commit 747a98555d
4 changed files with 5 additions and 6 deletions

View File

@@ -22,8 +22,6 @@ export const buildTree = function(
settings: Settings,
): DomSpan {
const options = optionsFromSettings(settings);
// `buildHTML` sometimes messes with the parse tree (like turning bins ->
// ords), so we build the MathML version first.
const mathMLNode = buildMathML(tree, expression, options);
const htmlNode = buildHTML(tree, options);