Creating automatic ToC in Github

While creating being tidy is important for readability. In my opinion creating Table of Content makes it better. If you have long document, to doing that take so much time. While writing markdown in Github, there is no options to create that automatically. When i was searching about doing that I have just find such a good script to create ToC automatically.

To install that script:


There are few way to use that script to create Toc. I’ll use stdin method.


When execute command, Markdown’s codes gonna appear on terminal you can paste to the beginning of

More explained on this repository:


Another one which is work with Ruby



Have a nice coding 🙂