mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #202] MD046 flagged when html comment in list item as string #172
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#172
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 @nschonni on GitHub (Jul 5, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/202
OK, I can't seem to get a minimum reproduction, but I hit it in this file
github.com/MicrosoftDocs/visualstudio-docs@3375c14411/docs/xml-tools/walkthrough-using-xml-editor-features.mdThe following section and the final H2 get flagged with the rule
This doesn't reproduce on your demo site with just the snippet, so I think there is a larger edge case I'm not seeing.
I can resolve it if I change
<!--to<--, so it is probably somewhere in the HTML comment handling@DavidAnson commented on GitHub (Jul 5, 2019):
Thanks for trying! I’ll have a look in a couple of weeks when I circle back to this project.
@DavidAnson commented on GitHub (Jul 29, 2019):
I’m not able to reproduce this so far. That start-comment marker is recognized as beginning a comment, so the content after gets ignored. This is intentional and consistent with HTML. Given the uniqueness of this scenario and the workaround you propose, I’m not sure it’s worth spending too much more time here.