Generate a Readme toc for your Github repository.
This simple script can parse your markdown file and generate a Toc like this:
This generated toc supports inner page jumping.
Assuming that your target file's name is targetFile.md
. Just type this command in shell:
> python gitToc.py targetFile.md
You will get a new markdown file named targetFile_with_toc.md
in current directory.