[GH-ISSUE #613] MD043 option for match heading case #2326

Closed
opened 2026-03-07 20:06:44 +03:00 by kerem · 0 comments
Owner

Originally created by @mateus on GitHub (Oct 19, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/613

Currently, all headings passed to the MD043 rule are not case sensitive. Meaning that This Heading and this heading are both seen as valid for this rule. I would like to propose the addition of an option that will consider the case of the heading as well. Usage would look like this:

MD043: {
  headings: ['*', '## Lorem ipsum dolor', '## Consectetur adipiscing elit'],
  match_case: true,
},

The match_case option can be set to false as the default value to prevent breaking any existing usage of this rule.

Originally created by @mateus on GitHub (Oct 19, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/613 Currently, all headings passed to the [MD043](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md043) rule are not case sensitive. Meaning that `This Heading` and `this heading` are both seen as valid for this rule. I would like to propose the addition of an option that will consider the case of the heading as well. Usage would look like this: ``` MD043: { headings: ['*', '## Lorem ipsum dolor', '## Consectetur adipiscing elit'], match_case: true, }, ``` The `match_case` option can be set to false as the default value to prevent breaking any existing usage of this rule.
kerem 2026-03-07 20:06:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2326
No description provided.