MCPcopy
hub / github.com/KaTeX/KaTeX / toNode

Method toNode

src/tree.ts:44–52  ·  view source on GitHub ↗

Convert the fragment into a node.

()

Source from the content-addressed store, hash-verified

42
43 /** Convert the fragment into a node. */
44 toNode(): Node {
45 const frag = document.createDocumentFragment();
46
47 for (let i = 0; i < this.children.length; i++) {
48 frag.appendChild(this.children[i].toNode());
49 }
50
51 return frag;
52 }
53
54 /** Convert the fragment into HTML markup. */
55 toMarkup(): string {

Callers

nothing calls this directly

Calls 1

toNodeMethod · 0.65

Tested by

no test coverage detected