mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #585] MD038: allow code in nested blocks #463
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#463
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 @gforcada on GitHub (Sep 22, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/585
We are happily using
mkdocswith the popularmkdocs-materialplugin. One of its plugins is admonitions, which let's you have fancy boxes with some text within it.Unfortunately
markdownlintand admonitions do not play well together if one wants to have a fancy box with some code block on it, i.e.:But
markdownlintwill report aMD038as there are spaces on the code.Same happens on plain lists:
Would it be possible to either have another code that can be ignored, or check that the line that would issue a
MD038is actually within a scope/block, and if its indentation matches that of the block then it does not mark it as a problem?i.e. this should get a warning as
markdownlint-cli2 "docs/**/*.md"is indented way too much, but the examples above should be fineThanks for the time to build this tool!! ✨ 😄
@nschonni commented on GitHub (Sep 22, 2022):
https://github.com/DavidAnson/markdownlint/search?q=admonitions&type=issues
@DavidAnson commented on GitHub (Sep 22, 2022):
Here is your plain list example; it does not produce MD038 for me. What am I missing?
https://dlaa.me/markdownlint/#%25m%23%20Issue%20585%0A%0A-%20one%20entry%0A-%20another%20one%0A%20%20-%20see%20this%20code%3A%0A%20%20%20%20%60%60%60shell%0A%20%20%20%20markdownlint-cli2%20%22docs%2F**%2F*.md%22%0A%20%20%20%20%60%60%60%0A