I started to use markdown to take notes.
I use marked to view my markdown notes and its beautiful.
But as my notes get longer I find it diff
Use toc.py which is a tiny python script which generates a table-of-contents for your markdown.
Usage:
$python toc.py README.md
Cheers!