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

Function heading

test/unit/marked.test.js:517–530  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

515 }],
516 tokenizer: {
517 heading(src) {
518 if (src.startsWith(`# ${name}`)) {
519 const token = {
520 type: 'heading',
521 raw: `# ${name}`,
522 text: `used ${name}`,
523 depth: 1,
524 tokens: [],
525 };
526 this.lexer.inline(token.text, token.tokens);
527 return token;
528 }
529 return false;
530 },
531 },
532 useNewRenderer: true,
533 renderer: {

Callers

nothing calls this directly

Calls 1

inlineMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…