mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1393] MD027 - Indented code blocks trigger warning #2522
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#2522
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 @garazdawi on GitHub (Oct 28, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1393
When writing the following:
The MD0027 warning is triggered, which I think is a bug as the above is valid markdown.
@garazdawi commented on GitHub (Oct 28, 2024):
Hmm, and just as I hit send I cannot reproduce it any more.... sorry for the noise. I'll reopen if I fugure out what is going on.
@garazdawi commented on GitHub (Oct 28, 2024):
Seems like it is
github.com/DavidAnson/markdownlint@730ae9a96f (diff-2725cc5ae2)that changed the behaviour of this. Not sure if it is already fixed or not. The reason I got confused was that I was running an earlier version locally and a later version in CI.@DavidAnson commented on GitHub (Oct 28, 2024):
MD027 does produce a warning for the indented code block in your example: https://dlaa.me/markdownlint/#%25m%23%20Issue%201393%0A%0A%3E%20This%20is%20some%20code%3A%0A%3E%0A%3E%20%20%20%20%20Some%20indented%20code%0A%3E%0A%3E%20%20%20%20%20More%20code%0A
While correct, I think it should probably accommodate indented code blocks inside blockquotes. I'll have a look.