mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #1947] MD010: make an exception for the content of code blocks. #2632
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#2632
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 @randolf-scholz on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1947
Here, the tex-code block itself is indented with spaces, but the code snippet itself contains tabs in agreement with the formatting instructions. MD010 should probably not apply to the content of code blocks themselves.
@DavidAnson commented on GitHub (Feb 10, 2026):
You can opt out for code blocks with the
code_blocksparameter:https://github.com/DavidAnson/markdownlint/blob/main/doc/md010.md
@randolf-scholz commented on GitHub (Feb 10, 2026):
Oh my bad, I didn't realize that at all.