mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #139] "MD010 - Hard tabs" - ignore for code fences? #118
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#118
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 @gandalfsaxe on GitHub (Jul 31, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/139
Hi,
If I'm having a code fence in markdown for a language that may contain tabs, markdownlink shouldn't mark this with a MD010 warning? Because it's not markdown, it's a "quote" of another programming language that perhaps may contain tabs.
E.g. this
.gitattributescontent have tabs and that's fine:@DavidAnson commented on GitHub (Jul 31, 2018):
You want to set the
code_blocksparameter of MD010 tofalse: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md010@gandalfsaxe commented on GitHub (Jul 31, 2018):
Ah sorry, didn't know how I overlooked that. Curious, why is the default true?
@DavidAnson commented on GitHub (Aug 1, 2018):
In my experience, tabs are handled differently by many tools. So I would prefer not to have any in my document which should lead to the most predictable behavior. But for scenarios where tabs are wanted in code, this option lets you allow them.
@gandalfsaxe commented on GitHub (Aug 1, 2018):
I see. Thanks for the elaboration.