Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 440 Bytes

Download gfm-toc utility

$ curl -O https://raw.githubusercontent.com/atheiman/gfm-toc/master/gfm-toc

Make the downloaded gfm-toc file executable

$ chmod +x gfm-toc

Update your markdown with a %TOC% where you want the table of contents to be generated, then

$ ./gfm-toc README.md

Show gfm-toc help

$ ./gfm-toc -h

Source

The README.md of gfm-toc