Add MD035 with tests.

This commit is contained in:
David Anson 2015-04-14 09:40:16 -07:00
parent 9acbb2750e
commit 762d8425ca
12 changed files with 166 additions and 3 deletions

View file

@ -0,0 +1,6 @@
{
"default": true,
"MD035": {
"style": "---"
}
}

22
test/hr_style_dashes.md Normal file
View file

@ -0,0 +1,22 @@
***
* * *
*****
---
- - -
-----
___
_ _ _
_____
***
{MD035:1} {MD035:3} {MD035:5} {MD035:9} {MD035:11} {MD035:13} {MD035:15}
{MD035:17} {MD035:19}

View file

@ -0,0 +1,22 @@
***
* * *
*****
---
- - -
-----
___
_ _ _
_____
***
{MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}
{MD035:17}

6
test/hr_style_long.json Normal file
View file

@ -0,0 +1,6 @@
{
"default": true,
"MD035": {
"style": "_____"
}
}

22
test/hr_style_long.md Normal file
View file

@ -0,0 +1,22 @@
***
* * *
*****
---
- - -
-----
___
_ _ _
_____
***
{MD035:1} {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13}
{MD035:15} {MD035:19}

6
test/hr_style_stars.json Normal file
View file

@ -0,0 +1,6 @@
{
"default": true,
"MD035": {
"style": "***"
}
}

22
test/hr_style_stars.md Normal file
View file

@ -0,0 +1,22 @@
***
* * *
*****
---
- - -
-----
___
_ _ _
_____
***
{MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}
{MD035:17}

View file

@ -498,7 +498,7 @@ module.exports.badFileSync = function badFileSync(test) {
};
module.exports.readme = function readme(test) {
test.expect(80);
test.expect(83);
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(123);
test.expect(127);
fs.readFile("doc/Rules.md", shared.utf8Encoding,
function readFile(err, contents) {
test.ifError(err);