rust-lang / rust-lang/mdBook

Accessibility: New Markdown files must start with Heading Level 2 because Book Title is Heading level 1

Open
#2,372 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
22.2k
Forks
1.9k
PR merge metrics
PR metrics pending

Description

Problem

There must be only one Heading Level one present.
If Book Title is shown, its H1. Then all Markdown files need to Start with H2.

Steps
  1. Set book title
  2. Make entries in Summary.md
  3. Find that the entries all start with H1 "#" instead of H2 "##"
Possible Solution(s)

Start new Markdown files with H2 "##"

Notes

No response

Version
mdbook v0.4.37

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the steps with mdBook v0.4.37, using a book title and entries in Summary.md, then trace where the new Markdown files are created. Done means generated entry files begin with Heading Level 2 (##) when the book title occupies Heading Level 1 (#), with the existing behavior covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, rust
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.