Table of content in discourse topics

Larger topics and wiki posts, especially in our Knowledge Base section can be hard to navigate. To make them a bit more user-friendly, we have installed the table of content component in Discourse. It allows adding a table of content (toc) to the article.

In a nutshell, it looks for headings in topics that are marked to have a toc (via the composer button) and if it turns out the current topic is marked, then it takes all the headings and puts them in the toc (nested in order of heading levels) - this means that your markdown must be syntactically correct .

# heading 1
## heading 2
### heading 3
#### heading 4
##### heading 5
###### heading 6

You can add the table of content at the top of your article by clicking the little gearbox in the topic composer and select “Insert table of contents”.


:woman_facepalming: You can fix me, I’m a wiki post.