I needed a table of contents for a reStructuredText (.rst) document I was editing, so I added
.. contents:: Table of Contents
in the appropriate place and it works fine.
Problem is, at least in GitHub's RST parser/renderer/whatever, the "Table of Contents" title displays just like normal, non-header text would, when I want a level 2-heading instead.
Here's the README.rst file I'm trying to change. Notice how "Table of Contents" looks not so much like a section header or title.
Is there a way to either
- style the TOC title like a level 2-heading, or
disable the TOC title altogether, so I could just add my own? (something like the following)
Table of Contents ----------------- .. contents:: :disable_title: true