Toshimaru's Blog

Create Table of Contents in kramdown

If you use kramdown (which is a default markdown renderer for Jekyll), you can easily add TOC (Table of Contents) to your markdown contents.

Just add the snippet to the position where you want to show the TOC.

* toc

Table of Contents for this post

Let’s add TOC in this post.



Does it work?

As you can see, it works correctly! :)


Load more