Introduction
Sometimes a post may be too long to navigate without a little help. It would be great to be jump around within the post using a table of contents with links to the sections.
How to add a TOC
You can add a table of contents to a post by simply putting a tag at the very top of the post. Then, the system will interpret all headings and subheadings appropriately and add them to the table. It will also show the TOC at the top right of the post so other people can jump around by clicking on the links.
Here’s the tag to add at the beginning:
<div data-theme-toc="true"> </div>
I know, the tag is a bit strange and needs to be on the top line of the post. But the value you get from it is really worth the trouble, especially on long posts.
Give it a shot on your next new topic.