MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / hasMathContent

Function hasMathContent

src/pages/markdownPreview/renderer.js:121–127  ·  view source on GitHub ↗
(text = "")

Source from the content-addressed store, hash-verified

119}
120
121export function hasMathContent(text = "") {
122 return (
123 BLOCK_MATH_PATTERN.test(text) ||
124 INLINE_MATH_PATTERN.test(text) ||
125 BEGIN_END_MATH_PATTERN.test(text)
126 );
127}
128
129async function getKatexAndTexmathModules() {
130 if (!mathModulesPromise) {

Callers 2

renderFunction · 0.90
getMarkdownItFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected