A table of contents is automatically generated when you use at least two or more headings in a markdown file.
Each heading will be used in the table of contents, and all six headings can be used.
The headings will form the table and the table of contents will be indented based on the headings.
Watch this all on our YouTube short.