(root)
| 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 || ""; |
nothing calls this directly
no test coverage detected