mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #218] MD037 does not detect spaces in *** inlines when used to apply emphasis+strong together #2035
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#2035
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 @TheJaredWilcurt on GitHub (Aug 27, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/218
MD037 only handles strong, not em or both. This is inconsistent with how it is documented.
❌ This does not throw an error✔️ This throws error:
✔️ This throws error:
❌ This does not throw an error
@DavidAnson commented on GitHub (Aug 28, 2019):
As written, the first example is a single-item list, so should not error. If used in a paragraph context, it errors as expected. The third example is not a valid emphasis, so should not error.
Here are those examples as parsed by
markdown-it: https://dlaa.me/markdownlint/#%25m%23%20218%0A%0A*%20text%20*%0A%0AText%20*%20text%20*%0A%0A**%20text%20**%0A%0A***%20text%20***%0A@TheJaredWilcurt commented on GitHub (Aug 28, 2019):
Padding with spaces on any of them is invalid.
Line 9 should still be caught.
@DavidAnson commented on GitHub (Aug 28, 2019):
Agreed. Thanks for the example!