mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #189] MD031 not triggered in indented lists #2012
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#2012
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 @ranebrown on GitHub (May 21, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/189
When using fenced code blocks inside a list the 'MD031 - Fenced code blocks should be surrounded by blank lines' rule is not triggered due to the leading indentation.
@DavidAnson commented on GitHub (May 22, 2019):
It looks to me like MD031 is triggered for the top and bottom fences of your example: https://dlaa.me/markdownlint/#%25m%23%20Issue%20189%0A%0A-%20item%201%0A-%20item%202%0A%20%20%20%20%60%60%60c%0A%20%20%20%20int%20main()%0A%20%20%20%20%7B%0A%20%20%20%20return%200%3B%0A%20%20%20%20%7D%0A%20%20%20%20%60%60%60%0A-%20item%203%0A
Could you please provide more detail about how to reproduce the issue?
@ranebrown commented on GitHub (May 22, 2019):
I'm using markdownlint-cli. I was using version 0.13.0 and seeing this issue but updating to the latest (0.16.0) seems to have resolved the problem. Sorry for the trouble.
@DavidAnson commented on GitHub (May 22, 2019):
No worries, glad you sorted it out!