mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #918] New rule to enforce the type of reference link to use #2401
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#2401
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 @waldyrious on GitHub (Jul 23, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/918
Commonmark defines three types of reference links:
[bar][foo][foo][][foo]All of these refer to a link defined elsewhere as
[foo]: https://example.com.There's currently a PR (#845) implementing a rule to select which style of link to use: inline, reference, or consistent. To avoid overloading that rule, and following the recommendation here, I'm opening this issue to request a separate rule specifically for reference links.
I propose the values to be either
consistentor an array of the allowable types of reference links (full,collapsed,shortcut).