Simple bash script to generate table of contents from a markdown file (most commonly README.md
)
Only dependency is bash
.
To generate ToC, run following command. The ToC will be echoed to command line. Afterwards you can put the ToC output into your markdown file and it will link your headings.
./markdown-toc.sh README.md
Any issues or improvements can be reported using GitHub issues.