Markdown TOC Generator
Generate a table of contents for a markdown doc.
Table of contents
- [My Document](#my-document)
- [Introduction](#introduction)
- [Background](#background)
- [History](#history)
- [Current state](#current-state)
- [Methods](#methods)
- [Data collection](#data-collection)
- [Analysis](#analysis)
- [Results](#results)
- [Conclusion](#conclusion)Generates a nested markdown TOC. Skips headings inside code blocks. Anchor slugs follow the GitHub Flavored Markdown convention - lowercase, spaces to hyphens, special chars dropped.
About
Paste markdown. The tool extracts headings up to a chosen level and builds a nested TOC with GFM-style anchor slugs. Skips headings inside code blocks.
How to use
- Paste markdown.
- Pick depth.
FAQ
Are anchors GitHub-compatible?+
Yes - lowercase, spaces become hyphens, special characters dropped. Same algorithm GitHub uses to generate auto-anchors on README files.