Generate table of contents for markdown content
Markdown content to analyze
TOC generation options
Promise resolving to TOC result
import { generateToc } from 'markmv';const content = '# Title\n## Section 1\n### Subsection';const result = await generateToc(content, { minDepth: 2 });console.log(result.toc); Copy
import { generateToc } from 'markmv';const content = '# Title\n## Section 1\n### Subsection';const result = await generateToc(content, { minDepth: 2 });console.log(result.toc);
Generate table of contents for markdown content