markup
markup copied to clipboard
Adjust initial_header_level for TOC
The initial_header_level, set to 2, causes 2 problems:
- When including a TOC, it will have an empty first level, which just looks really bad.
- It differs from the way headings are handled in MarkDown.
What's the issue
The issue is not apparent on github because the generation of a table of contents is not available for restructuredText there. The issue appeared in my company's blog on pages written in restructuredText and looks something like this (table of contents):
-
- First Section Title
- Second Section Title
- Subsection Title
- Another Subsection Title
- Third Section Title
It should look like this, and this is what results from my pull request:
- First Section Title
- Second Section Title
- Subsection Title
- Another Subsection Title
- Third Section Title
NToyKala
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
في ثلاثاء، 10 ديسمبر، 2024 في 3:11 م، كتب github-actions[bot] < @.***>:
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
— Reply to this email directly, view it on GitHub https://github.com/github/markup/pull/1080#issuecomment-2531465179, or unsubscribe https://github.com/notifications/unsubscribe-auth/A66NWB4SIKMQOPAMULZFZQL2E3LALAVCNFSM6AAAAABTLAP4LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZRGQ3DKMJXHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@panderson02 You reviewed this issue in February, but it is still marked as "Review required". Is something missing?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.