mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #398] MD011 false positive #331
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#331
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 @af4jm on GitHub (May 22, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/398
if I have
xxx(xxx)[xxx]I get a violation of no-reversed-links... but if I backslash-escape any one of the 4 special characters the warning should go away, but it doesn't... even if I escape all 4 of them, the warning still firesfor example, for purposes of MD011, the following 2 sequences are identical...
xxx(xxx)\[xxx]xxx(xxx)xxxx]yet the first one triggers a false positive@DavidAnson commented on GitHub (May 22, 2021):
Thanks! I think this rule runs on parsed text, so it doesn't "see" the escaping. Here's an example of each scenario: https://dlaa.me/markdownlint/#%25m%23%20Reversed%20Links%0A%0Axxx(xxx)%5Bxxx%5D%0A%0Axxx%5C(xxx)%5Bxxx%5D%0A%0Axxx(xxx%5C)%5Bxxx%5D%0A%0Axxx(xxx)%5C%5Bxxx%5D%0A%0Axxx(xxx)%5Bxxx%5C%5D%0A