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

Method toText

static/katex/katex.mjs:935–942  ·  view source on GitHub ↗

* Converts the math node into a string, similar to innerText. Applies to * MathDomNode's only.

()

Source from the content-addressed store, hash-verified

933
934
935 toText() {
936 // To avoid this, we would subclass documentFragment separately for
937 // MathML, but polyfills for subclassing is expensive per PR 1469.
938 // $FlowFixMe: Only works for ChildType = MathDomNode.
939 const toText = child => child.toText();
940
941 return this.children.map(toText).join("");
942 }
943
944}
945

Callers

nothing calls this directly

Calls 1

toTextMethod · 0.45

Tested by

no test coverage detected