mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #538] MD051 should support arbitrary id attributes, not just <a> tags #440
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#440
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 @MarkLodato on GitHub (Jul 26, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/538
MD051 currently only checks
<a>tags forid="..."attributes, but this requirement seems arbitrary. Any HTML element may have anidattribute to define an anchor.It seems like this can be easily fixed by removing the check for
atags on line 58.In my case, I have a table and use
idattributes to link to specfic rows of the table:Would you be willing to accept a PR that fixes this, or is there some other reason why only
atags are accepted?@DavidAnson commented on GitHub (Jul 26, 2022):
Yes, I would accept a PR for this! Please read the CONTRIBUTING guide first. Thank you!