If you look here: http://en.wikipedia.org/wiki/Stack_Overflow
You\'ll notice there\'s a little \"Content\" section, if you click on one of the links, it will send you to
https://github.com/jonschlinkert/markdown-toc
git clone your-repo.wiki.git
(add the .wiki
right before .git
to clone the wikinpm i -g markdown-toc
(case sensitive) in your wiki's markdownmarkdown-toc -i my-wiki-markdown.md
(-i
will edit it in place)Update: I think maybe https://github.com/thlorenz/doctoc is more popular now.