mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #155] MD031 expecting blank lines inside code block #1982
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#1982
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 @joaoportela on GitHub (Nov 19, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/155
I have a MD031 warning in a document but I have the expected blank lines around the code block, see:

If I put blank lines inside the code block the warning disappears. See:
@DavidAnson commented on GitHub (Nov 19, 2018):
Could it be confused by a previous fence that was not closed? Can you please point me at a document that reproduces this? I think the top part of the document will be relevant assuming you agree this is not normally a problem. Thanks!
@joaoportela commented on GitHub (Nov 22, 2018):
What do you mean? An unmatched ```?
I can confirm that this is not normally a problem. I'll hunt for that file again.
@joaoportela commented on GitHub (Nov 22, 2018):
I've found it.
The issue is caused by having this earlier in the file
Changing to this fixes it:
@DavidAnson commented on GitHub (Nov 22, 2018):
Thank you, I’ll look at fixing this soon!
@joaoportela commented on GitHub (Feb 5, 2019):
:)