Enable MD001: Fix heading level increments for accessibility#2189
Merged
Enable MD001: Fix heading level increments for accessibility#2189
Conversation
Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix MD001 violations for heading levels
Enable MD001: Fix heading level increments for accessibility
Feb 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes accessibility violations by correcting 255 instances where markdown heading levels skip increments (e.g., H1→H3 instead of H1→H2→H3), which breaks screen reader navigation. The fix ensures all heading hierarchies increment by single levels across 222 markdown files and enables the MD001 linting rule to prevent future violations.
Changes:
- Fixed heading level violations across 222 markdown files by converting H3 to H2 and H4 to H3 where appropriate
- Enabled MD001 rule in
.markdownlint-cli2.jsoncwith accessibility comment - Ensured proper document structure for assistive technologies
Reviewed changes
Copilot reviewed 223 out of 223 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.markdownlint-cli2.jsonc |
Enabled MD001 rule to enforce proper heading level increments |
| Multiple markdown files (222 total) | Corrected heading levels from H3→H2 or H4→H3 to maintain proper hierarchy |
bc330cc to
0c05b95
Compare
…/fix-md001-heading-levels
Thraka
previously approved these changes
Feb 17, 2026
TylerMSFT
approved these changes
Feb 17, 2026
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.
MD001 was disabled, allowing 255 instances where heading levels skip increments (e.g., H1→H3). This breaks screen reader navigation and document structure.
@BillWagner
Fixes #2194EDIT; Ack, wrong issue...
Fixes #29
Changes
.markdownlint-cli2.jsoncExample
Before:
After:
All heading hierarchies now increment by single levels (H1→H2→H3), ensuring proper document structure for assistive technologies.
Original prompt
This section details on the original issue you should resolve
<issue_title>MD001: Heading levels should only increment by one level at a time</issue_title>
<issue_description>Violations of this rule has accessibility-related concerns.
Click here to view a list of MD001 violations