MCPcopy
hub / github.com/agent0ai/agent-zero / renderMath

Function renderMath

plugins/_editor/webui/editor-store.js:675–680  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

673 },
674
675 renderMath(root) {
676 if (!globalThis.katex?.render) return;
677 for (const node of textNodesUnder(root, "code,pre,.katex,.editor-code-block")) {
678 this.replaceMathInTextNode(node);
679 }
680 },
681
682 replaceMathInTextNode(node) {
683 const text = node.nodeValue || "";

Callers

nothing calls this directly

Calls 1

textNodesUnderFunction · 0.85

Tested by

no test coverage detected