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

Function assertSymbolDomNode

src/domTree.ts:610–618  ·  view source on GitHub ↗
(
    group: HtmlDomNode,
)

Source from the content-addressed store, hash-verified

608}
609
610export function assertSymbolDomNode(
611 group: HtmlDomNode,
612): SymbolNode {
613 if (group instanceof SymbolNode) {
614 return group;
615 } else {
616 throw new Error(`Expected symbolNode but got ${String(group)}.`);
617 }
618}
619
620export function assertSpan(
621 group: HtmlDomNode,

Callers 1

htmlBuilderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected