MCPcopy
hub / github.com/markmap/markmap / fn

Function fn

packages/markmap-lib/src/plugins/katex/index.browser.ts:41–45  ·  view source on GitHub ↗
(tokens, idx)

Source from the content-addressed store, hash-verified

39 md.use(katexPlugin);
40 ['math_block', 'math_inline'].forEach((key) => {
41 const fn: MarkdownIt.Renderer.RenderRule = (tokens, idx) => {
42 enableFeature();
43 const result = renderKatex(tokens[idx].content, !!tokens[idx].block);
44 return result;
45 };
46 md.renderer.rules[key] = fn;
47 });
48 });

Callers 7

safeCallerFunction · 0.85
destroyMethod · 0.85
callMethod · 0.85
loadJSItemFunction · 0.85
memoizeFunction · 0.85
runFunction · 0.85
sequenceFunction · 0.85

Calls 1

renderKatexFunction · 0.85

Tested by

no test coverage detected