mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #615] MD034 false positive and wrong fix #2328
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#2328
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 @vkucera on GitHub (Oct 23, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/615
Rule MD034 is triggered for an URL appearing between
>and<of the<a></a>HTML tag.There are two problems with this.
<atag instead of putting them around the URL between>and<which actually triggered the rule.E.g.:
becomes
See demo
@DavidAnson commented on GitHub (Oct 23, 2022):
Can I ask why use an HTML
atag at all? Why not use the Markdown syntax<url>which does the same thing and is shorter and easier to read?@vkucera commented on GitHub (Oct 23, 2022):
In general, HTML tags are needed for some features not supported by Markdown, e.g. opening a hyperlink in a new tab with
target=_blankor picture size.