Text and writing
How to create a table of contents from Markdown headings
A table of contents makes a long document easier to navigate. Anchor addresses also depend on the renderer where it is published.
Before you start
Text is processed in the browser. Consider the content before using it and read the privacy policy.
PrivacyHow to use it
Enter # Café, ## Passos and ## Passos on three lines.
Generate the table of contents and check the levels and links.
Test the anchors in the destination site or editor before publishing.
Worked example
The generator removes the accent from the Café identifier and adds a suffix to the second repeated heading.
Generated links: #cafe, #passos and #passos-1.
Limits and checks
ATX and setext headings are recognized and fenced code blocks ignored. The identifier rules may differ on the destination platform, so links are not guaranteed. Limits: 50,000 UTF-16 code units and 1,000 lines.
Next step
To add a table to the same document, use Markdown Table.
How to make a Markdown table for documentation