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
You could also use pandoc
, the "swiss-army knife" for converting "one markup format into another". It can automatically generate a table of content in the output document if you supply the --toc
argument.
Hint: If you want a table of contents in html
output, you also need to supply -s
which generates a standalone document.
Example shell command line:
./pandoc -s --toc input.md -o output.html