MCPcopy
hub / github.com/KaTeX/KaTeX / buildHTMLTree

Function buildHTMLTree

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

Source from the content-addressed store, hash-verified

53};
54
55export const buildHTMLTree = function(
56 tree: AnyParseNode[],
57 expression: string,
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

Used in the wild real call sites across dependent graphs

searching dependent graphs…