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

Method toText

src/mathMLTree.ts:248–254  ·  view source on GitHub ↗

* Converts the math node into a string, similar to innerText.

()

Source from the content-addressed store, hash-verified

246 * Converts the math node into a string, similar to innerText.
247 */
248 toText(): string {
249 if (this.character) {
250 return this.character;
251 } else {
252 return " ";
253 }
254 }
255}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected