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

Method toMarkup

static/katex/katex.mjs:920–928  ·  view source on GitHub ↗

Convert the fragment into HTML markup.

()

Source from the content-addressed store, hash-verified

918
919
920 toMarkup() {
921 let markup = ""; // Simply concatenate the markup for the children together.
922
923 for (let i = 0; i < this.children.length; i++) {
924 markup += this.children[i].toMarkup();
925 }
926
927 return markup;
928 }
929 /**
930 * Converts the math node into a string, similar to innerText. Applies to
931 * MathDomNode's only.

Callers

nothing calls this directly

Calls 1

toMarkupMethod · 0.45

Tested by

no test coverage detected