-
-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Weird behavior with h2 headers when no h1 is present #2515
Comments
This was referenced Jul 27, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Search terms
on, this, page, h1, h2, markdown, header, table, of, contents, readme
Expected Behavior
I do not have an h1 header in my README.md file, but several h2 headers. I expected them all to be in the same "level" in the Table Of Contents aka. On This Page. However, my first h2 header is at a higher level than the rest of them. See the screenshot below for what I mean.
Actual Behavior
In "On This Page", the first h2 header is shown as the main header with the rest of the h2 headers as subheaders below it.
Steps to reproduce the bug
# header
## headers
(see my example code in extra)Environment
Extra
The text was updated successfully, but these errors were encountered: