-
Install the script if you haven't yet! Type these into a terminal:
wget https://raw.githubusercontent.com/-ekalinin/github-markdown-toc/master/gh-md-toc
andchmod a+x gh-md-toc
-
Using the script (an example):
./gh-md-toc ~/Scripts/README.md
this is for when you're working in the home folder OR~/gh-md-toc ~/Scripts/README.md
for when you're working in another folder -
Copy and paste the output and you're done!