mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-21 00:10:13 +01:00
Add maximum parameter to MD012/no-multiple-blanks (fixes #27).
This commit is contained in:
parent
ce9ec8fb5e
commit
affd94e061
6 changed files with 86 additions and 5 deletions
|
|
@ -857,7 +857,7 @@ module.exports.readme = function readme(test) {
|
|||
};
|
||||
|
||||
module.exports.doc = function doc(test) {
|
||||
test.expect(294);
|
||||
test.expect(295);
|
||||
fs.readFile("doc/Rules.md", shared.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
|
|||
6
test/no-multiple-blanks-maximum.json
Normal file
6
test/no-multiple-blanks-maximum.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD012": {
|
||||
"maximum": 3
|
||||
}
|
||||
}
|
||||
46
test/no-multiple-blanks-maximum.md
Normal file
46
test/no-multiple-blanks-maximum.md
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Heading
|
||||
|
||||
Text
|
||||
|
||||
Text
|
||||
|
||||
|
||||
Text
|
||||
|
||||
|
||||
|
||||
Text
|
||||
|
||||
|
||||
|
||||
|
||||
Text {MD012:16}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Text {MD012:21} {MD012:22}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Text {MD012:27} {MD012:28} {MD012:29}
|
||||
|
||||
Text
|
||||
|
||||
|
||||
|
||||
|
||||
Text {MD012:36}
|
||||
|
||||
|
||||
|
||||
Text
|
||||
|
||||
|
||||
Text
|
||||
|
||||
Text
|
||||
24
test/no-multiple-blanks.md
Normal file
24
test/no-multiple-blanks.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Heading
|
||||
|
||||
Text
|
||||
|
||||
Text
|
||||
|
||||
|
||||
Text {MD012:7}
|
||||
|
||||
|
||||
|
||||
Text {MD012:10} {MD012:11}
|
||||
|
||||
|
||||
|
||||
|
||||
Text {MD012:14} {MD012:15} {MD012:16}
|
||||
|
||||
Text
|
||||
|
||||
|
||||
Text {MD012:21}
|
||||
|
||||
Text
|
||||
Loading…
Add table
Add a link
Reference in a new issue