Markdown TOC | How to use and interpret results
Find hash-prefixed Markdown headings and make nested table-of-contents links. It helps review a long document's structure without guaranteeing a host's exact anchor-ID rules.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Paste the document and choose the minimum and maximum heading levels. Review any hash-prefixed text inside code fences that could be mistaken for a heading.
Results and examples
## Setup becomes a Setup link targeting the draft anchor #setup. Repeated headings gain local suffixes, which need comparison with the publishing system's duplicate-ID policy.
Worked example
## Setup becomes a Setup link targeting the draft anchor #setup. Repeated headings gain local suffixes, which need comparison with the publishing system's duplicate-ID policy.
Limitations
- Setext headings and code-fence context are not fully parsed.
- Hosts differ in heading-ID generation and duplicate suffixes.
Fields
| Field | Guidance and constraints |
|---|---|
| Markdown | Check the unit and format displayed beside this field. |
| Min level | Check the unit and format displayed beside this field. |
| Max level | Check the unit and format displayed beside this field. |
| Table of contents (Markdown) | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Which link is made from Setup?
## Setup becomes a Setup link targeting the draft anchor #setup. Repeated headings gain local suffixes, which need comparison with the publishing system's duplicate-ID policy.
Will the table of contents work on every host?
Setext headings and code-fence context are not fully parsed. Hosts differ in heading-ID generation and duplicate suffixes.