mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-18 01:08:40 +00:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user