mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[PR #1617] [MERGED] MD001: Support front matter title as the first heading of the page #3416
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#3416
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DavidAnson/markdownlint/pull/1617
Author: @afeblot
Created: 5/27/2025
Status: ✅ Merged
Merged: 6/7/2025
Merged by: @DavidAnson
Base:
next← Head:feature/md001-frontmatter-title📝 Commits (2)
91df188MD001/heading-increment: Support front matter title as the first heading of the page (fixes #1613).2ee67b2Update heading_increment-title_level3_bad.md📊 Changes
21 files changed (+317 additions, -16 deletions)
View changed files
📝
doc-build/md001.md(+9 -0)📝
doc/Rules.md(+14 -0)📝
doc/md001.md(+14 -0)📝
lib/configuration-strict.d.ts(+16 -2)📝
lib/md001.mjs(+6 -2)📝
schema/.markdownlint.jsonc(+4 -1)📝
schema/.markdownlint.yaml(+3 -1)📝
schema/build-config-schema.mjs(+9 -0)📝
schema/markdownlint-config-schema-strict.json(+26 -4)📝
schema/markdownlint-config-schema.json(+26 -4)➕
test/heading_increment-alt_title_level3_bad.md(+14 -0)➕
test/heading_increment-title_level2_good.md(+7 -0)➕
test/heading_increment-title_level3_bad.md(+5 -0)📝
test/markdownlint-test.mjs(+1 -1)📝
test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap(+0 -0)📝
test/snapshots/markdownlint-test-repos-mdn-content.mjs.md(+78 -1)📝
test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap(+0 -0)📝
test/snapshots/markdownlint-test-repos-small.mjs.md(+4 -0)📝
test/snapshots/markdownlint-test-repos-small.mjs.snap(+0 -0)📝
test/snapshots/markdownlint-test-scenarios.mjs.md(+81 -0)...and 1 more files
📄 Description
Consistently with rules 25 and 41, this brings support for front matter title as the first heading of the page, which will by default be considered as a level 1 heading, unless a level is explicitly configured.
Cf. https://github.com/DavidAnson/markdownlint/issues/1613
@DavidAnson,
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.