(text = "")
| 119 | } |
| 120 | |
| 121 | export 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 | |
| 129 | async function getKatexAndTexmathModules() { |
| 130 | if (!mathModulesPromise) { |
no outgoing calls
no test coverage detected