MCPcopy
hub / github.com/KaTeX/KaTeX / renderToString

Function renderToString

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

Source from the content-addressed store, hash-verified

69 * Parse and build an expression, and return the markup for that.
70 */
71const renderToString = function(
72 expression: string,
73 options: SettingsOptions,
74): string {
75 const markup = renderToDomTree(expression, options).toMarkup();
76 return markup;
77};
78
79/**
80 * Parse an expression and return the parse tree.

Callers

nothing calls this directly

Calls 2

renderToDomTreeFunction · 0.85
toMarkupMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…