mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #540] MD037 Flags asterisks in HTML attributes #2288
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#2288
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 @mtlynch on GitHub (Jul 29, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/540
First, thanks for all your excellent work on markdownlint! I ran into a minor bug today that I wanted to share.
If there are two asterisks in an HTML attribute, markdownlint will flag it as MD037/no-space-in-emphasis. This seems to be an error as there isn't markdown within HTML attributes:
Example input
markdown-lint output
@DavidAnson commented on GitHub (Jul 29, 2022):
Thanks for the clear reproduction! There are a number of rules that use heuristics instead of the parser and so don't really understand the context of what they are reporting. I already have a helper that excludes violations like this from code spans; I should be able to do something similar for HTML.
@DavidAnson commented on GitHub (Jul 29, 2022):
Oh, and thanks for the sponsorship!!