mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #804] MD037 false-positive for underscore-emphasized strings when like-strings are in the same paragraph #539
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#539
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 @pbredenberg on GitHub (May 4, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/804
When using underscores for emphasis, MD037 is triggered when two strings with underscore characters emphasized with an underscore occur in the same paragraph.
The rule does not trigger errors when they occur in different paragraphs.
Here's an MRE demonstrating the issue
Pipeline showing the error
Passes:
Fails:
In the document in question, I switched from using underscores for emphasis to backticks, since they are representative of encoded strings, but thought I'd note the issue anyway.
idattributes on non-aelements. #886idattributes on non-aelements. #2736