MCPcopy Index your code
hub / github.com/TruthHun/BookStack / buildTree

Function buildTree

static/katex/katex.mjs:7019–7025  ·  view source on GitHub ↗
(tree, expression, settings)

Source from the content-addressed store, hash-verified

7017};
7018
7019const buildTree = function buildTree(tree, expression, settings) {
7020 const options = optionsFromSettings(settings);
7021 const mathMLNode = buildMathML(tree, expression, options);
7022 const htmlNode = buildHTML(tree, options);
7023 const katexNode = buildCommon.makeSpan(["katex"], [mathMLNode, htmlNode]);
7024 return displayWrap(katexNode, settings);
7025};
7026const buildHTMLTree = function buildHTMLTree(tree, expression, settings) {
7027 const options = optionsFromSettings(settings);
7028 const htmlNode = buildHTML(tree, options);

Callers 1

renderToDomTreeFunction · 0.85

Calls 4

optionsFromSettingsFunction · 0.85
displayWrapFunction · 0.85
buildMathMLFunction · 0.70
buildHTMLFunction · 0.70

Tested by

no test coverage detected