Conversation
Collaborator
Member
Contributor
Author
|
Hm, that's a good point. Yea, it is expected as mdbook expects a chapter to have only one level-1 heading (usually the chapter title at the top). At the risk of causing complete chaos, I pushed a commit that corrects the heading levels. Pages generally shouldn't have multiple h1 headings anyways. |
Member
This increases the heading level so that RFCs do not contain multiple level-1 headings. mdbook expects that chapters have only a single level-1 heading (and that usually should be at the very top). More than one h1 element on a page is generally not recommended (for example, https://www.a11yproject.com/posts/how-to-accessible-heading-structure/#one-h1).
Contributor
Author
|
Well shoot. I thought my replacements handled that. I have re-pushed the commit which should fix that. I ended up using pulldown-cmark to more accurately detect the headings. Unfortunately a large number of RFCs had weird heading levels. So I went through manually visually inspected each RFC to see if the nesting looked odd and fixed any RFC that looked weird (that was maybe 10-15% of them). |
ehuss
added a commit
to ehuss/rfcs
that referenced
this pull request
Dec 4, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
ehuss
added a commit
to ehuss/rfcs
that referenced
this pull request
Dec 4, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
ehuss
added a commit
to ehuss/rfcs
that referenced
this pull request
Dec 4, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
This was referenced Dec 4, 2025
ehuss
added a commit
that referenced
this pull request
Dec 11, 2025
Updated section headers to use Markdown 2nd level headings. As part of #3883 we switched the template to not use level-1 headings. r? Turbo87
davidtwco
pushed a commit
to davidtwco/rfcs
that referenced
this pull request
Dec 12, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
davidtwco
pushed a commit
to davidtwco/rfcs
that referenced
this pull request
Dec 12, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
davidtwco
pushed a commit
to davidtwco/rfcs
that referenced
this pull request
Dec 12, 2025
As part of rust-lang#3883, we have switched the template to stop using level-1 headings which isn't the way mdbook is intended to be used.
ehuss
added a commit
to ehuss/rfcs
that referenced
this pull request
Jan 26, 2026
Updated section headers to use Markdown 2nd level headings. As part of rust-lang#3883 we switched the template to not use level-1 headings.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-051
Rendered