mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #945] MD051: False-positive if the header itself is a link #2410
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#2410
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?
Originally created by @sschuberth on GitHub (Aug 30, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/945
In our README, code like
triggers MD051 for a reference like
I guess this happens because the linter does not recognize the link syntax in the heading.
PS: This seem like a regression in markdownlint v0.30.0 as markdownlint v0.29.0 did not complain.
@philrz commented on GitHub (Sep 4, 2023):
It looks like we've bumped into this one as well. We've got a markdown file at https://github.com/brimdata/zed/blob/main/docs/tutorials/schools.md that's always checked clean in the past but started showing these MD051 failures once markdownlint v0.30.0 was in use.
In our case a reference looks like:
with the corresponding header looking like:
@DavidAnson commented on GitHub (Sep 4, 2023):
Good timing, @philrz - I verified that your example is fixed by the change I just made for the original example by @sschuberth.