Markdown TOC Generator
Automatically generate a table of contents from your Markdown headings. Supports GitHub, GitLab link styles, custom heading depth range, and one-click insertion.
–
0 headings found
How to Use
Automatically generate a table of contents from your Markdown headings. Supports GitHub, GitLab link styles, custom heading depth range, and one-click insertion.
- 1Paste your Markdown document into the input area, or click 'Load sample' to try it.
- 2Choose a link style: GitHub (most common), GitLab, or Plain Text (no links).
- 3Set the heading range — e.g. H2 to H4 — to exclude the document title and deep sub-headings.
- 4The table of contents generates instantly as you type or adjust settings.
- 5Click 'Copy TOC' to copy it, or 'Insert into document' to prepend it automatically.
Key Features
- GitHub and GitLab anchor link styles supported
- Customizable heading range (H1–H6)
- Automatically ignores headings inside fenced code blocks
- One-click insert into your Markdown document
- Live preview of the generated heading structure