mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
This commit is contained in:
parent
6302b26c99
commit
47ff95e8d2
19 changed files with 157 additions and 4 deletions
|
|
@ -388,7 +388,7 @@ Tags: whitespace, hard_tab
|
|||
|
||||
Aliases: no-hard-tabs
|
||||
|
||||
Parameters: code_blocks (boolean; default true)
|
||||
Parameters: code_blocks, spaces_per_tab (boolean; default true, number; default 1)
|
||||
|
||||
Fixable: Most violations can be fixed by tooling
|
||||
|
||||
|
|
@ -420,6 +420,9 @@ 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).
|
||||
|
||||
If you would like the fixer to change tabs to x spaces, then configure the `spaces_per_tab`
|
||||
parameter to the number x. The default value would be 1.
|
||||
|
||||
Rationale: Hard tabs are often rendered inconsistently by different editors and
|
||||
can be harder to work with than spaces.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue