mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #258] MD036 gets confused by parenthesis #221
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#221
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 @Arcitec on GitHub (Feb 18, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/258
Try this document:
I decided to avoid using parenthesis, since that fixes the linting problem. But it's still weird that it gives such an incorrect linting result in the parenthesis case. :-)
@DavidAnson commented on GitHub (Feb 19, 2020):
I don’t think there is an issue here. The relevant part of the rule description:
MD036 fires in your example above because the conditions above are met. MD036 does not fire when the parenthesis are removed because then the paragraph ends in a punctuation character (‘.’).
More: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md036---emphasis-used-instead-of-a-heading