Markdown Outline/TOC is empty when a .md file has >500 headings (works at 500, fails at 501) #184712
Replies: 4 comments 2 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
hello may i see yourt markdown |
Beta Was this translation helpful? Give feedback.
-
|
For those unaware of this feature, there is a list button at the top right which is an outline button: |
Beta Was this translation helpful? Give feedback.
-
|
Since this is a limit within GitHub’s internal code, you cannot "fix" the native button yourself. However, you can bypass the problem so that your users can still navigate your document. Here are the three most effective ways to restore navigation to a Markdown file with more than 500 headings.
How to do it: Use a script or a VS Code extension (like "Markdown All in One") to generate a list of links. The format looks like this: Markdown My Large Documentation... (rest of the file) |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Summary:
The Markdown file header “Table of contents” / “Outline” UI becomes empty when a Markdown document has more than 500 headings. It works with 500 headings, but fails (empty outline) at 501 headings.
I think that the minimum should be at least 2k. Perhaps more, making it easier to navigate a single file library documentation.
My test repo:
md-TOC-Test
Repro files:
Steps to reproduce:
Expected result:
The outline/TOC should populate for README-501-headings.md the same way it does for README.md.
Actual result:
The outline/TOC panel is empty for README-501-headings.md. (The headings still exist in the document, and the file renders, but the outline list does not populate.)
Observations:
Related:
GitHub Community discussion Outline feature on Markdown document no longer populates #140300
Environment:
Beta Was this translation helpful? Give feedback.
All reactions