mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00: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
|
|
@ -46,6 +46,6 @@ Note: Can not break MD025 and MD002 in the same file
|
|||
1. list
|
||||
2. list {MD029}
|
||||
|
||||
```
|
||||
```js
|
||||
``` {MD031}
|
||||
* list {MD032}
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ The following code block doesn't have any dollar signs, and shouldn't fire:
|
|||
The following (fenced) code block doesn't have any content at all, and
|
||||
shouldn't fire:
|
||||
|
||||
```
|
||||
```bash
|
||||
```
|
||||
|
|
|
|||
|
|
@ -19,3 +19,9 @@ echo "World"
|
|||
~~~
|
||||
|
||||
None of the above should trigger any heading related rules.
|
||||
|
||||
```
|
||||
Code block without a language specifier
|
||||
```
|
||||
|
||||
{MD040:23}
|
||||
|
|
|
|||
4
test/fenced_code_without_blank_lines.json
Normal file
4
test/fenced_code_without_blank_lines.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD040": false
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD004": false,
|
||||
"MD029": false
|
||||
"MD029": false,
|
||||
"MD040": false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ module.exports.badFileSync = function badFileSync(test) {
|
|||
};
|
||||
|
||||
module.exports.readme = function readme(test) {
|
||||
test.expect(92);
|
||||
test.expect(95);
|
||||
var tagToRules = {};
|
||||
rules.forEach(function forRule(rule) {
|
||||
rule.tags.forEach(function forTag(tag) {
|
||||
|
|
@ -555,7 +555,7 @@ module.exports.readme = function readme(test) {
|
|||
};
|
||||
|
||||
module.exports.doc = function doc(test) {
|
||||
test.expect(143);
|
||||
test.expect(147);
|
||||
fs.readFile("doc/Rules.md", shared.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue