MCPcopy
hub / github.com/KaTeX/KaTeX / renderToHTMLTree

Function renderToHTMLTree

katex.ts:131–142  ·  view source on GitHub ↗
(
    expression: string,
    options: SettingsOptions,
)

Source from the content-addressed store, hash-verified

129 * This is used for advanced use cases (like rendering to custom output).
130 */
131const renderToHTMLTree = function(
132 expression: string,
133 options: SettingsOptions,
134): DomSpan {
135 const settings = new Settings(options);
136 try {
137 const tree = parseTree(expression, settings);
138 return buildHTMLTree(tree, expression, settings);
139 } catch (error) {
140 return renderError(error, expression, settings);
141 }
142};
143
144const version = __VERSION__;
145

Callers

nothing calls this directly

Calls 3

buildHTMLTreeFunction · 0.90
parseTreeFunction · 0.85
renderErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…