mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #404] Text ending in a hash-character incorrectly detected as closed heading #334
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#334
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 @mtausig on GitHub (Jun 7, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/404
I have a document with some code snippets, one of them being
C#:The problem is, that this triggers rules MD003 and MD020 because the validator believes that I am trying to use a closed heading style in the last heading.
Demo sample: https://dlaa.me/markdownlint/#%25m%23%20Main%0A%0A%23%23%20Samples%0A%0A%23%23%23%20Java%0A%0Afoo%0A%0A%23%23%23%20C%23%0A%0Abar%0A
@nschonni commented on GitHub (Jun 7, 2021):
Yes, you need to escape the trailing
#as### C\#@DavidAnson commented on GitHub (Jun 7, 2021):
Agreed. Here's your sample with that change: https://dlaa.me/markdownlint/#%25m%23%20Main%0A%0A%23%23%20Samples%0A%0A%23%23%23%20Java%0A%0Afoo%0A%0A%23%23%23%20C%5C%23%0A%0Abar%0A
@mtausig commented on GitHub (Jun 7, 2021):
Thank you. Didn't know that.