Add code_blocks parameter to MD010 to ignore hard tabs in code blocks (fixes #31).

This commit is contained in:
David Anson 2016-09-29 21:25:10 -07:00
parent c2982e2972
commit a2df7742c6
6 changed files with 87 additions and 3 deletions

View file

@ -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