[GH-ISSUE #102] MD024 triggers on same inner headers inside different top-level headers #1933

Closed
opened 2026-03-07 20:02:54 +03:00 by kerem · 2 comments
Owner

Originally created by @KillyMXI on GitHub (Jan 7, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/102

# Issue A

## Solution

# Issue B

## Solution

-- looks totally fine for me and I don't want it to be triggered.

Originally created by @KillyMXI on GitHub (Jan 7, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/102 ``` # Issue A ## Solution # Issue B ## Solution ``` -- looks totally fine for me and I don't want it to be triggered.
kerem 2026-03-07 20:02:54 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Jan 7, 2018):

That’s correct behavior for MD024 - the rationale explains why: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md024

You might want to disable MD024 for that file or for your project if you don’t agree with the rule.

You might also look into MD043 as an alternate way to enforce header structure: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md043

Hope this helps!

<!-- gh-comment-id:355845088 --> @DavidAnson commented on GitHub (Jan 7, 2018): That’s correct behavior for MD024 - the rationale explains why: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md024 You might want to disable MD024 for that file or for your project if you don’t agree with the rule. You might also look into MD043 as an alternate way to enforce header structure: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md043 Hope this helps!
Author
Owner

@KillyMXI commented on GitHub (Jan 7, 2018):

So it's just a workaround thing for some parsers.
I missed that line.

Disabling it is a way to go for me then.

<!-- gh-comment-id:355852737 --> @KillyMXI commented on GitHub (Jan 7, 2018): So it's just a workaround thing for some parsers. I missed that line. Disabling it is a way to go for me then.
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#1933
No description provided.