mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #544] MD053 problem with link definition usage over two lines in blockquotes #2291
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#2291
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 @ericcornelissen on GitHub (Aug 1, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/544
Rule MD053 incorrectly complains about an unused link definition when the link usage:
Reproducing
The following MarkDown file should reproduce the error:
Result:
When removing the blockquotes, the problem is no longer reporter.
Result:
(These examples are based on the documentation for ericcornelissen/svgo-action, where I first encountered this bug.)
@DavidAnson commented on GitHub (Aug 1, 2022):
The problem is when the shortcut link spans multiple lines in a block quote. Your example 2 doesn't seem to demonstrate that because it uses the same link from example 1. Removing example 1 generates a failure.
@ericcornelissen commented on GitHub (Aug 1, 2022):
My bad 😅 Thanks for double checking it! I updated the original issue description to avoid confusion.