Is there a way to generate a ToC on a rendered README.md hosted on Github Pages that doesn't require the use of local Jekyll plugins to generate it prior to uploading it to Github Pages?
9
votes
2 Answers
10
votes
According to this post, all you have to do is add {:toc}
in your markdown page at the place you want a table of contents.
-1
votes
You have to wrap the ToC contents between TOC and /TOC fields in the README.md file. Here is an example from one of my GitHub repository where you can see how table of contents are rendered in GitHub. https://github.com/write2sushma/TaxiDataPipeLine