mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add code_blocks parameter to MD010 to ignore hard tabs in code blocks (fixes #31).
This commit is contained in:
parent
c2982e2972
commit
a2df7742c6
6 changed files with 87 additions and 3 deletions
|
@ -258,6 +258,8 @@ Tags: whitespace, hard_tab
|
|||
|
||||
Aliases: no-hard-tabs
|
||||
|
||||
Parameters: code_blocks (boolean; default true)
|
||||
|
||||
This rule is triggered by any lines that contain hard tab characters instead
|
||||
of using spaces for indentation. To fix this, replace any hard tab characters
|
||||
with spaces instead.
|
||||
|
@ -274,6 +276,10 @@ Corrected example:
|
|||
|
||||
* Spaces used to indent the list item instead
|
||||
|
||||
You have the option to exclude this rule for code blocks. To do so, set the
|
||||
`code_blocks` parameter to `false`. Code blocks are included by default since
|
||||
handling of tabs by tools is often inconsistent (ex: using 4 vs. 8 spaces).
|
||||
|
||||
## MD011 - Reversed link syntax
|
||||
|
||||
Tags: links
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue