Usage
Scans headings and outputs a linked contents list.
const heads = md.match(/^#+ .+$/gm) || [];
console.log(heads.length + ' headings');
Markdown toc is an AI agent skill from the GitHub repository MohibShaikh/clawvet. Builds a table of contents from Markdown headings.
.claude/skills/markdown-toc/SKILL.md.cursor/rules/markdown-toc.md.agents/skills/markdown-toc/SKILL.mdScans headings and outputs a linked contents list.
const heads = md.match(/^#+ .+$/gm) || [];
console.log(heads.length + ' headings');