mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01: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
35
test/code-block-with-tabs-allowed.md
Normal file
35
test/code-block-with-tabs-allowed.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Heading
|
||||
|
||||
```js
|
||||
if (true) {
|
||||
console.log("true");
|
||||
if (false) {
|
||||
console.log("false");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
if (true) {
|
||||
console.log("true");
|
||||
if (false) {
|
||||
console.log("false");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
if (true) {
|
||||
console.log("true");
|
||||
if (false) {
|
||||
console.log("false");
|
||||
}
|
||||
}
|
||||
|
||||
if (true) {
|
||||
console.log("true");
|
||||
if (false) {
|
||||
console.log("false");
|
||||
}
|
||||
}
|
||||
|
||||
Line with hard tab. {MD010}
|
||||
Loading…
Add table
Add a link
Reference in a new issue