Add MD040 with tests.

This commit is contained in:
David Anson 2015-04-16 09:13:56 -07:00
parent 7e431f4499
commit 5d6d9d2b3b
10 changed files with 54 additions and 7 deletions

View file

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