MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / buildHTMLTree

Function buildHTMLTree

src/buildTree.ts:56–64  ·  view source on GitHub ↗
(
    tree: AnyParseNode[],
    settings: Settings,
)

Source from the content-addressed store, hash-verified

54};
55
56export const buildHTMLTree = function(
57 tree: AnyParseNode[],
58 settings: Settings,
59): DomSpan {
60 const options = optionsFromSettings(settings);
61 const htmlNode = buildHTML(tree, options);
62 const katexNode = makeSpan(["katex"], [htmlNode]);
63 return displayWrap(katexNode, settings);
64};
65
66export default buildTree;

Callers 1

renderToHTMLTreeFunction · 0.90

Calls 4

makeSpanFunction · 0.90
optionsFromSettingsFunction · 0.85
buildHTMLFunction · 0.85
displayWrapFunction · 0.85

Tested by

no test coverage detected