mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-23 17:30:12 +01:00
Update MD031/blanks-around-fences to include list_items parameter (fixes #200).
This commit is contained in:
parent
4d11e60cfe
commit
c5b74d22b9
9 changed files with 178 additions and 9 deletions
6
test/lists-with-fenced-code-tight.json
Normal file
6
test/lists-with-fenced-code-tight.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD031": {
|
||||
"list_items": false
|
||||
}
|
||||
}
|
||||
59
test/lists-with-fenced-code-tight.md
Normal file
59
test/lists-with-fenced-code-tight.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Lists with Fenced Code, Tight
|
||||
|
||||
- Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
- Item
|
||||
- Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
- Item
|
||||
```text
|
||||
fence
|
||||
```
|
||||
- Item
|
||||
- Item
|
||||
```text
|
||||
fence
|
||||
```
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
1. Item
|
||||
1. Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
1. Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
```text
|
||||
fence
|
||||
```
|
||||
1. Item
|
||||
1. Item
|
||||
```text
|
||||
fence
|
||||
```
|
||||
1. Item
|
||||
59
test/lists-with-fenced-code.md
Normal file
59
test/lists-with-fenced-code.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Lists with Fenced Code
|
||||
|
||||
- Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
- Item
|
||||
- Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
- Item
|
||||
```text
|
||||
fence {MD031:21} {MD031:23}
|
||||
```
|
||||
- Item
|
||||
- Item
|
||||
```text
|
||||
fence {MD031:26} {MD031:28}
|
||||
```
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
1. Item
|
||||
1. Item
|
||||
|
||||
```text
|
||||
fence
|
||||
```
|
||||
|
||||
1. Item
|
||||
|
||||
Text
|
||||
|
||||
1. Item
|
||||
```text
|
||||
fence {MD031:51} {MD031:53}
|
||||
```
|
||||
1. Item
|
||||
1. Item
|
||||
```text
|
||||
fence {MD031:56} {MD031:58}
|
||||
```
|
||||
1. Item
|
||||
|
|
@ -1169,7 +1169,7 @@ module.exports.readme = function readme(test) {
|
|||
};
|
||||
|
||||
module.exports.doc = function doc(test) {
|
||||
test.expect(327);
|
||||
test.expect(328);
|
||||
fs.readFile("doc/Rules.md", helpers.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue