How to create a page toc

Published: | Updated: | by Julian Knight Reading time ~1 min.
📖 Kb | 📎 Development | 🔖 jekyll, static site generators, markdown, kramdown

If you want to generate a table of contents list (toc) for a markdown file, you can use the native Kramdown feature.

If you want to generate an in-page table of contents using markdown headings, you can do so with the following code.

* This list entry is required but will not be shown, it is replaced by the toc
{:toc}

Share this:
comments powered by Disqus