Generate table of contents from markdown content.
Markdown content to analyze
Configuration options
Promise resolving to TOC result
Extract headings from markdown content without generating TOC.
Markdown content to analyze
Configuration options
Promise resolving to array of headings
Utility for generating table of contents from markdown content.
This class extracts headings from markdown content and generates formatted table of contents with proper indentation and anchor links.
Example
Basic usage
Example
With custom options