Markdown table of contents
Generate a nested TOC from Markdown headings — GitHub-style anchors, depth filter, ordered or plain.
How to use
- Paste your Markdown.
- Set the heading depth range and list style.
- Copy the TOC into the document.
What it supports
GitHub anchor rules: lowercase, spaces→dashes, most punctuation dropped, duplicates get -1/-2. Headings inside fenced code blocks are ignored. Up to 300,000 characters / 500 headings.