MCPcopy Create free account
hub / github.com/TruthHun/BookStack / toMarkup

Method toMarkup

static/katex/katex.mjs:6778–6784  ·  view source on GitHub ↗

* Converts the math node into an HTML markup string.

()

Source from the content-addressed store, hash-verified

6776
6777
6778 toMarkup() {
6779 if (this.character) {
6780 return `<mtext>${this.character}</mtext>`;
6781 } else {
6782 return `<mspace width="${this.width}em"/>`;
6783 }
6784 }
6785 /**
6786 * Converts the math node into a string, similar to innerText.
6787 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected