mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD040 with tests.
This commit is contained in:
parent
7e431f4499
commit
5d6d9d2b3b
10 changed files with 54 additions and 7 deletions
19
doc/Rules.md
19
doc/Rules.md
|
|
@ -853,3 +853,22 @@ This rule is triggered on links that have spaces surrounding the link text:
|
|||
To fix this, remove the spaces surrounding the link text:
|
||||
|
||||
[a link](http://www.example.com/)
|
||||
|
||||
## MD040 - Fenced code blocks should have a language specified
|
||||
|
||||
Tags: code, language
|
||||
|
||||
This rule is triggered when fenced code blocks are used, but a language isn't
|
||||
specified:
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
echo Hello world
|
||||
```
|
||||
|
||||
To fix this, add a language specifier to the code block:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
echo Hello world
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue