mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update MD010/no-hard-tabs to add ignore_code_languages parameter (fixes #383).
This commit is contained in:
parent
0f845e9ba1
commit
b447c809bd
9 changed files with 112 additions and 3 deletions
50
test/code-block-with-language-allowed.md
Normal file
50
test/code-block-with-language-allowed.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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");
|
||||
}
|
||||
}
|
||||
|
||||
```text
|
||||
hello
|
||||
world
|
||||
}
|
||||
```
|
||||
|
||||
if (true) { // {MD010}
|
||||
console.log("true"); // {MD010}
|
||||
if (false) { // {MD010}
|
||||
console.log("false"); // {MD010}
|
||||
} // {MD010}
|
||||
} // {MD010}
|
||||
|
||||
Line with hard tab. {MD010}
|
||||
|
||||
```javascript
|
||||
if (true) {
|
||||
console.log("true"); // {MD010}
|
||||
if (false) { // {MD010}
|
||||
console.log("false"); // {MD010}
|
||||
} // {MD010}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue