MCPcopy
hub / github.com/markedjs/marked / provideLexer

Function provideLexer

test/unit/Hooks.test.js:197–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 marked.use({
196 hooks: {
197 provideLexer() {
198 return (src) => [createHeadingToken(src)];
199 },
200 },
201 });
202 const html = marked.parse('text');

Callers

nothing calls this directly

Calls 2

timeoutFunction · 0.90
createHeadingTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…