Improve highlighting for MD044/proper-names, add more tests.

This commit is contained in:
David Anson 2017-11-07 21:40:50 -08:00
parent 1668207213
commit 7acb3d72fd
4 changed files with 38 additions and 8 deletions

View file

@ -5,3 +5,9 @@ An [empty]() link
An [empty](#) link with fragment
This is a test file for the MARKDOWNLINT package.
This is a paragraph
about Markdownlint
that capitalizes the
name wrong twice:
MarkDownLint.

View file

@ -27,7 +27,7 @@
"errorRange": [4, 10]
},
{
"lineNumber": 8,
"lineNumber": 14,
"ruleName": "MD043",
"ruleAlias": "required-headers",
"ruleDescription": "Required header structure",
@ -42,6 +42,24 @@
"ruleDescription": "Proper names should have the correct capitalization",
"errorDetail": "Expected: markdownlint; Actual: MARKDOWNLINT",
"errorContext": null,
"errorRange": null
"errorRange": [29, 12]
},
{
"lineNumber": 10,
"ruleName": "MD044",
"ruleAlias": "proper-names",
"ruleDescription": "Proper names should have the correct capitalization",
"errorDetail": "Expected: markdownlint; Actual: Markdownlint",
"errorContext": null,
"errorRange": [7, 12]
},
{
"lineNumber": 13,
"ruleName": "MD044",
"ruleAlias": "proper-names",
"ruleDescription": "Proper names should have the correct capitalization",
"errorDetail": "Expected: markdownlint; Actual: MarkDownLint",
"errorContext": null,
"errorRange": [1, 12]
}
]