diff --git a/test/4-tabs-MD010.md b/test/4-tabs-MD010.md
index db0aba00..89335951 100644
--- a/test/4-tabs-MD010.md
+++ b/test/4-tabs-MD010.md
@@ -1,3 +1,3 @@
- text
-text and text 2
-texts with trailing spaces
+ text {MD010}
+text and text 2 {MD010}
+texts with trailing spaces {MD010}
diff --git a/test/MD001-MD010.md b/test/MD001-MD010.md
index 34bafbdb..ee1eb578 100644
--- a/test/MD001-MD010.md
+++ b/test/MD001-MD010.md
@@ -1,30 +1,30 @@
-## One
+## One {MD002}
-#### Two
+#### Two {MD001}
-### Three ###
+### Three {MD003} ###
* Alpha
- * Bravo
+ * Bravo {MD005} {MD007}
-- Charlie
+- Charlie {MD004}
- * Delta
- * Echo
+ * Delta {MD006} {MD007}
+ * Echo {MD006} {MD007}
-Text
+Text {MD009}
-Text text
+Text text {MD010}
1. One
2. Two
3. Three
4. Four
-5. Five
+5. Five {MD005}
6. Six
7. Seven
8. Eight
9. Nine
10. Ten
- 11. Eleven
+ 11. Eleven {MD005}
12. Twelve
diff --git a/test/MD011-MD021.md b/test/MD011-MD021.md
index c7213301..886d69db 100644
--- a/test/MD011-MD021.md
+++ b/test/MD011-MD021.md
@@ -2,25 +2,27 @@
-A (reversed)[link] example.
+A (reversed)[link] example. {MD011}
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
## 123456789 123456789 123456789 123456789 123456789 123456789
- $ command with no output
+ $ command with no output {MD014}
-##No space A
+##No space A {MD018}
-## Multiple spaces B
+## Multiple spaces B {MD019}
-##No space C ##
+##No space C {MD020} ##
-## No space D##
+## No space D {MD020}##
-## Multiple spaces E ##
+## Multiple spaces E {MD021} ##
-## Multiple spaces F ##
+## Multiple spaces F {MD021} ##
-*Another* (reversed)[link] example.
+*Another* (reversed)[link] example. {MD011}
+
+{MD012:7} {MD013:8} {MD013:10}
diff --git a/test/MD022-MD030.md b/test/MD022-MD030.md
index 1065632a..cfedbd44 100644
--- a/test/MD022-MD030.md
+++ b/test/MD022-MD030.md
@@ -3,17 +3,19 @@ Text
# Heading
-## Another heading.
+## Another heading {MD026}.
-> Multiple spaces
+> Multiple spaces {MD027}
> Blank line above
1. Alpha
-3. Beta
+3. Beta {MD029} {MD030}
-> > Multiple spaces, multiple blockquotes
+> > Multiple spaces, multiple blockquotes {MD027}
> >
-> > > Multiple spaces, multiple blockquotes
+> > > Multiple spaces, multiple blockquotes {MD027}
> > >
-> > > Multiple spaces, multiple blockquotes
+> > > Multiple spaces, multiple blockquotes {MD027}
+
+{MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}
diff --git a/test/MD031-MD040.md b/test/MD031-MD040.md
index 6dc52a18..8ecbdd6d 100644
--- a/test/MD031-MD040.md
+++ b/test/MD031-MD040.md
@@ -1,63 +1,65 @@
```js
debugger;
```
-* List
+* List {MD032}
-Inline
HTML
+Inline
HTML {MD033}
-Bare https://example.com link
+Bare https://example.com link {MD034}
---
***
-*Emphasis*
+*Emphasis {MD036}*
-Space * inside * emphasis
+Space * inside * emphasis {MD037}
-Space ` inside` code span
+Space ` inside` code span {MD038}
-Space [ inside ](link) text
+Space [ inside ](link) text {MD039}
```
```
-space `` inside`` code
-space `inside` of ` code` elements
-`space` inside `of` code ` elements`
-space ``inside`` of `` code`` elements
-`` ` embedded backtick``
-``embedded backtick` ``
+space `` inside`` code {MD038}
+space `inside` of ` code` elements {MD038}
+`space` inside `of` code ` elements` {MD038}
+space ``inside`` of `` code`` elements {MD038}
+`` ` embedded backtick`` {MD038}
+``embedded backtick` `` {MD038}
-some *space* in * some* emphasis
-some *space* in *some * emphasis
-some *space* in **some ** emphasis
-some _space_ in _ some_ emphasis
-some __space__ in __ some __ emphasis
+some *space* in * some* emphasis {MD037}
+some *space* in *some * emphasis {MD037}
+some *space* in **some ** emphasis {MD037}
+some _space_ in _ some_ emphasis {MD037}
+some __space__ in __ some __ emphasis {MD037}
Text
-text ` code
+text ` code {MD038}
span` text
text.
Text
text `code
-span ` text
+span ` text {MD038}
text.
-* List
+* List {MD032}
---
Text
text ```code
span code
-span code ``` text
+span code ``` text {MD038}
text
-text text ```` code
+text text ```` code {MD038}
span code
span```` text
text.
-Text [ space](link) text [space ](link) text [ space ](link) text.
+Text [ space](link) text [space ](link) text [ space ](link) text. {MD039}
-Space * inside
-multi-line * emphasis.
+Space * inside {MD037}
+multi-line * emphasis. {MD037}
+
+ {MD031:3} {MD035:11} {MD040:21}
diff --git a/test/MD041-MD050.md b/test/MD041-MD050.md
index 6c8cac05..a27c6133 100644
--- a/test/MD041-MD050.md
+++ b/test/MD041-MD050.md
@@ -1,49 +1,49 @@
-Not a heading
+Not a heading {MD041}
-An [empty]() link
+An [empty]() link {MD042}
-An [empty](#) link with fragment
+An [empty](#) link with fragment {MD042}
-An [empty](<>) link with angle brackets
+An [empty](<>) link with angle brackets {MD042}
-This is a test file for the MARKDOWNLINT package.
+This is a test file for the MARKDOWNLINT package. {MD044}
This is a paragraph
-about Markdownlint
+about Markdownlint {MD044}
that capitalizes the
name wrong twice:
-MarkDownLint.
+MarkDownLint. {MD044}
-A [normal](link) and an [empty one]() and a [fragment](#one).
+A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}
-An image without alternate text 
+An image without alternate text  {MD045}
```text
Fenced code
```
- Indented code
+ Indented code {MD046}
~~~text
-Fenced code
+Fenced code {MD048:27}
~~~
-Mixed *emphasis* on _this_ line *with* multiple _issues_
+Mixed *emphasis* on _this_ line *with* multiple _issues_ {MD049}
-Mixed __strong emphasis__ on **this** line __with__ multiple **issues**
+Mixed __strong emphasis__ on **this** line __with__ multiple **issues** {MD050}
Inconsistent
-emphasis _text
+emphasis _text {MD049}
spanning_ many
lines
Inconsistent
-strong **emphasis
+strong **emphasis {MD050}
spanning** many
lines
-Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis.
+Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. {MD049}
-Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis.
+Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050}
-Missing newline character
\ No newline at end of file
+Missing newline character {MD043} {MD047}
\ No newline at end of file
diff --git a/test/MD051-MD060.md b/test/MD051-MD060.md
index 9e48b93a..e934b141 100644
--- a/test/MD051-MD060.md
+++ b/test/MD051-MD060.md
@@ -1,3 +1,10 @@
# detailed-results-MD051-MD060
-A [link with a missing](#fragment)
+A [link with a missing](#fragment) {MD051}
+
+A [link with a][defined-label]
+
+A [link with a][undefined-label] {MD052}
+
+[defined-label]: https://example.com
+[unused-label]: {MD053}
diff --git a/test/bare-urls.md b/test/bare-urls.md
index 5662db8c..6938511d 100644
--- a/test/bare-urls.md
+++ b/test/bare-urls.md
@@ -1,13 +1,13 @@
# Detailed Results Bare URLs
-For more, see https://example.com.
+For more, see https://example.com. {MD034}
-For more, see https://example.com/.
+For more, see https://example.com/. {MD034}
-For more, see https://example.com/?query=string#hash.
+For more, see https://example.com/?query=string#hash. {MD034}
-For more, see https://example.com/info.htm.
+For more, see https://example.com/info.htm. {MD034}
-Visit https://example.com, then refresh.
+Visit https://example.com, then refresh. {MD034}
-The site (https://example.com) is down.
+The site (https://example.com) is down. {MD034}
diff --git a/test/blanks-around-fences-in-lists.md b/test/blanks-around-fences-in-lists.md
index 094b35f7..1965ab6c 100644
--- a/test/blanks-around-fences-in-lists.md
+++ b/test/blanks-around-fences-in-lists.md
@@ -69,3 +69,8 @@ Text
> > - ```text
> > Text
> > ```
+
+{MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}
+{MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}
+{MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}
+{MD031:66} {MD031:68} {MD031:69}
diff --git a/test/blanks-around-headings-0-2.md b/test/blanks-around-headings-0-2.md
index 6180b853..a9d3dac0 100644
--- a/test/blanks-around-headings-0-2.md
+++ b/test/blanks-around-headings-0-2.md
@@ -5,7 +5,7 @@
Text
-## Banana
+## Banana {MD022}
Text
## Cherry
@@ -18,7 +18,7 @@ Text
Text
---
-Elderberry
-----------
+Elderberry {MD022}
+------------------
Text
## Fig
diff --git a/test/blanks-around-headings-3-0.md b/test/blanks-around-headings-3-0.md
index fa28900f..26830bde 100644
--- a/test/blanks-around-headings-3-0.md
+++ b/test/blanks-around-headings-3-0.md
@@ -16,11 +16,11 @@ Text
Text
-## Durian ##
+## Durian {MD022} ##
Text
-Elderberry
-----------
+Elderberry {MD022}
+------------------
Text
diff --git a/test/blanks-around-headings.md b/test/blanks-around-headings.md
index 9230c370..bf6a1f63 100644
--- a/test/blanks-around-headings.md
+++ b/test/blanks-around-headings.md
@@ -4,19 +4,19 @@
Text
-## Banana
+## Banana {MD022}
Text
## Cherry
Text
-## Durian ##
+## Durian {MD022} ##
Text
---
-Elderberry
-----------
+Elderberry {MD022}
+------------------
Text
## Fig
diff --git a/test/code-fences-in-blockquotes.md b/test/code-fences-in-blockquotes.md
index fd8f273b..ba39452a 100644
--- a/test/code-fences-in-blockquotes.md
+++ b/test/code-fences-in-blockquotes.md
@@ -16,3 +16,5 @@ Text
> > Text
> > ```
> > Text
+
+{MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}
diff --git a/test/default-spaces-MD010.md b/test/default-spaces-MD010.md
index db0aba00..89335951 100644
--- a/test/default-spaces-MD010.md
+++ b/test/default-spaces-MD010.md
@@ -1,3 +1,3 @@
- text
-text and text 2
-texts with trailing spaces
+ text {MD010}
+text and text 2 {MD010}
+texts with trailing spaces {MD010}
diff --git a/test/fixing-with-front-matter.md b/test/fixing-with-front-matter.md
index 9ba14846..231f1b4e 100644
--- a/test/fixing-with-front-matter.md
+++ b/test/fixing-with-front-matter.md
@@ -2,10 +2,10 @@
front: matter
ignore: this
---
-# Fixing with Front Matter
-Text text text
+# Fixing with Front Matter {MD022}
+Text text text {MD009}
-Text [ link ](url) text
-## Nested Heading
+Text [ link ](url) text {MD039}
+## Nested Heading {MD022}
-Text
\ No newline at end of file
+Text {MD047}
\ No newline at end of file
diff --git a/test/front-matter-alternate.md b/test/front-matter-alternate.md
index 0a1f7486..2cc94f07 100644
--- a/test/front-matter-alternate.md
+++ b/test/front-matter-alternate.md
@@ -1,6 +1,6 @@
---
front: matter
---
-Text
+Text {MD041}
-Text
+Text {MD009}
diff --git a/test/html-comment-in-list-item.md b/test/html-comment-in-list-item.md
index 1abb9b14..994b5ab0 100644
--- a/test/html-comment-in-list-item.md
+++ b/test/html-comment-in-list-item.md
@@ -51,5 +51,3 @@
```
- item
-
-Placeholder issue {MD047}
\ No newline at end of file
diff --git a/test/html-tags.md b/test/html-tags.md
index 0bbf4773..388980ff 100644
--- a/test/html-tags.md
+++ b/test/html-tags.md
@@ -2,9 +2,9 @@
Text
-Block block
+Block block {MD033}
-Text inline inline text
+Text inline inline {MD033} text
Text
@@ -15,50 +15,50 @@ Text inline inline text
Text
-Block
-block block block
+Block {MD033:17}
+block block {MD033} block
block
block block block
block
-block block block block block
-block block block block block
+block block block block block {MD033}
+block block block block block {MD033}
Text
-Block block
+Block block {MD033}
-Text inline inline text
+Text inline inline {MD033} text
Text
-Block block
+Block block {MD033}
-Text inline inline text
+Text inline inline {MD033} text
Text
-Text inline text inline text inline text
+Text inline text inline text inline text {MD033}
-Text inline text inline text inline text
+Text inline text inline text inline {MD033}
Text
\Block block\
-\\Block block\\
+\\Block block {MD033}\\
Block block
Text \inline inline\ text
-Text \\inline inline\\ text
+Text \\inline inline {MD033}\\ text
Text inline inline text
Text
-> Text inline inline text
+> Text inline inline {MD033} text
> text inline inline text
Text
@@ -81,14 +81,14 @@ Text ```` text
Text `` text ```` text `````` text
-Text `` text inline text
+Text `` text inline {MD033} text
Text ``text text`` text
Text
-Text inline text
-text
text
+Text inline {MD033} text
+text
text {MD033}
Text
@@ -98,7 +98,7 @@ Another email autolink: .
Text
- is an HTML element.
+ is an HTML element. {MD033}
But is not an autolink or HTML element.
And neither is .
diff --git a/test/links-alternate.md b/test/links-alternate.md
index c9d90dc3..36bd4f20 100644
--- a/test/links-alternate.md
+++ b/test/links-alternate.md
@@ -1,19 +1,19 @@
# Detailed Link Results
-Text https://example.com/ text
+Text https://example.com/ text {MD034}
-Text text https://example.com/bare text
+Text text https://example.com/bare text {MD034}
-Text https://example.com/bare text text
+Text https://example.com/bare text text {MD034}
-Text `code https://example.com/code code` text https://example.com/ text
+Text `code https://example.com/code code` text https://example.com/ text {MD034}
-> Text text https://example.com/bare text
+> Text text https://example.com/bare text {MD034}
-Text https://example.com/dir
-text https://example.com/file.txt
+Text https://example.com/dir {MD034}
+text https://example.com/file.txt {MD034}
text
-text https://example.com/dir/dir/file?query=param
+text https://example.com/dir/dir/file?query=param {MD034}
```text
Code https://example.com/code?type=fence code
@@ -21,24 +21,24 @@ Code https://example.com/code?type=fence code
Code https://example.com/code?type=indent code
-Text more text https://example.com/same still more text done
+Text more text https://example.com/same still more text done {MD034}
-Text more \* text https://example.com/same more \[ text done
+Text more \* text https://example.com/same more \[ text done {MD034}
-Text https://example.com/first more text https://example.com/second still more text https://example.com/third done
+Text https://example.com/first more text https://example.com/second still more text https://example.com/third done {MD034}
-(Incorrect link syntax)[https://www.example.com/]
+(Incorrect link syntax)[https://www.example.com/] {MD011}
-Text [link ](https://example.com/) text.
+Text [link ](https://example.com/) text. {MD039}
-Text [ link](https://example.com/) text.
+Text [ link](https://example.com/) text. {MD039}
-Text [ link ](https://example.com/) text.
+Text [ link ](https://example.com/) text. {MD039}
-Text [link ][reference] text.
+Text [link ][reference] text. {MD039}
-Text [ link][reference] text.
+Text [ link][reference] text. {MD039}
-Text [ link ][reference] text.
+Text [ link ][reference] text. {MD039}
[reference]: https://example.com/
diff --git a/test/markdownlint-test-scenarios.js b/test/markdownlint-test-scenarios.js
index 289c7886..de4b713f 100644
--- a/test/markdownlint-test-scenarios.js
+++ b/test/markdownlint-test-scenarios.js
@@ -56,18 +56,16 @@ function createTestForFile(file) {
indices.push(match[2] ? Number.parseInt(match[2], 10) : index + 1);
}
}
- if (Object.keys(expected).length > 0) {
- const actual = {};
- for (const error of errors) {
- const rule = error.ruleNames[0];
- // eslint-disable-next-line no-multi-assign
- const indices = actual[rule] = actual[rule] || [];
- if (indices[indices.length - 1] !== error.lineNumber) {
- indices.push(error.lineNumber);
- }
+ const actual = {};
+ for (const error of errors) {
+ const rule = error.ruleNames[0];
+ // eslint-disable-next-line no-multi-assign
+ const indices = actual[rule] = actual[rule] || [];
+ if (indices[indices.length - 1] !== error.lineNumber) {
+ indices.push(error.lineNumber);
}
- t.deepEqual(actual, expected, "Too few or too many issues found.");
}
+ t.deepEqual(actual, expected, "Too few or too many issues found.");
// Create snapshot
const fixed = helpers.applyFixes(content, errors)
.replace(/\r\n/g, "\n");
diff --git a/test/no-tabs-edge-case-MD010.md b/test/no-tabs-edge-case-MD010.md
index db0aba00..ab55aac1 100644
--- a/test/no-tabs-edge-case-MD010.md
+++ b/test/no-tabs-edge-case-MD010.md
@@ -1,3 +1,3 @@
- text
-text and text 2
-texts with trailing spaces
+ text {MD010}
+text and text 2 {MD010}
+texts with trailing spaces{MD010}
diff --git a/test/ordered-list-item-prefix-single-alternate.md b/test/ordered-list-item-prefix-single-alternate.md
index 1a6959b5..562b21d4 100644
--- a/test/ordered-list-item-prefix-single-alternate.md
+++ b/test/ordered-list-item-prefix-single-alternate.md
@@ -1,3 +1,3 @@
# Ordered list examples
-9. Item
+9. Item {MD029}
diff --git a/test/ordered-list-item-prefix-zero-alternate.md b/test/ordered-list-item-prefix-zero-alternate.md
index f8eac253..e2f0c231 100644
--- a/test/ordered-list-item-prefix-zero-alternate.md
+++ b/test/ordered-list-item-prefix-zero-alternate.md
@@ -8,12 +8,12 @@ text
text
-1. Item
-1. Item
-1. Item
+1. Item {MD029}
+1. Item {MD029}
+1. Item {MD029}
text
-1. Item
-2. Item
-3. Item
+1. Item {MD029}
+2. Item {MD029}
+3. Item {MD029}
diff --git a/test/proper-names-alternate.md b/test/proper-names-alternate.md
index 6205166f..28e8bb74 100644
--- a/test/proper-names-alternate.md
+++ b/test/proper-names-alternate.md
@@ -1,33 +1,33 @@
# Detailed Results Proper Names
-Text Markdownlint text.
+Text Markdownlint text. {MD044}
-Text node.JS text.
+Text node.JS text. {MD044}
-Text .net text.
+Text .net text. {MD044}
-Text example.net text.
+Text example.net text. {MD044}
-Text "Markdownlint" text.
+Text "Markdownlint" text. {MD044}
-Text "node.JS" text.
+Text "node.JS" text. {MD044}
-Text ".net" text.
+Text ".net" text. {MD044}
-Text "example.net" text.
+Text "example.net" text. {MD044}
-Text **Markdownlint** text.
+Text **Markdownlint** text. {MD044}
-Text **node.JS** text.
+Text **node.JS** text. {MD044}
-Text **.net** text.
+Text **.net** text. {MD044}
-Text **example.net** text.
+Text **example.net** text. {MD044}
-Markdownlint
+Markdownlint {MD044}
-node.JS
+node.JS {MD044}
-.net
+.net {MD044}
-example.net
+example.net {MD044}
diff --git a/test/snapshots/markdownlint-test-scenarios.js.md b/test/snapshots/markdownlint-test-scenarios.js.md
index b874c41e..0115b467 100644
--- a/test/snapshots/markdownlint-test-scenarios.js.md
+++ b/test/snapshots/markdownlint-test-scenarios.js.md
@@ -52,14 +52,14 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Column: 27',
+ errorDetail: 'Column: 35',
errorRange: [
- 27,
+ 35,
3,
],
fixInfo: {
deleteCount: 3,
- editColumn: 27,
+ editColumn: 35,
insertText: ' ',
},
lineNumber: 3,
@@ -71,9 +71,9 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: ` text␊
- text and text 2␊
- texts with trailing spaces ␊
+ fixed: ` text {MD010}␊
+ text and text 2 {MD010}␊
+ texts with trailing spaces {MD010} ␊
`,
}
@@ -301,12 +301,12 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: 'Expected: 0 or 2; Actual: 1',
errorRange: [
- 5,
+ 13,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
+ editColumn: 13,
},
lineNumber: 15,
ruleDescription: 'Trailing spaces',
@@ -337,35 +337,35 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `## One␊
+ fixed: `## One {MD002}␊
␊
- #### Two␊
+ #### Two {MD001}␊
␊
- ### Three ###␊
+ ### Three {MD003} ###␊
␊
* Alpha␊
- * Bravo␊
+ * Bravo {MD005} {MD007}␊
␊
- * Charlie␊
+ * Charlie {MD004}␊
␊
- * Delta␊
- * Echo␊
+ * Delta {MD006} {MD007}␊
+ * Echo {MD006} {MD007}␊
␊
- Text␊
+ Text {MD009}␊
␊
- Text text␊
+ Text text {MD010}␊
␊
1. One␊
2. Two␊
3. Three␊
4. Four␊
- 5. Five␊
+ 5. Five {MD005}␊
6. Six␊
7. Seven␊
8. Eight␊
9. Nine␊
10. Ten␊
- 11. Eleven␊
+ 11. Eleven {MD005}␊
12. Twelve␊
`,
}
@@ -464,7 +464,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '$ command with no output',
+ errorContext: '$ command with no output {MD01...',
errorDetail: null,
errorRange: [
5,
@@ -483,7 +483,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '##No space A',
+ errorContext: '##No space A {MD018}',
errorDetail: null,
errorRange: [
1,
@@ -502,7 +502,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## Multiple spaces B',
+ errorContext: '## Multiple spaces B {MD019}',
errorDetail: null,
errorRange: [
1,
@@ -521,16 +521,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '##No space C ##',
+ errorContext: '##No space C {MD020} ##',
errorDetail: null,
errorRange: [
1,
3,
],
fixInfo: {
- deleteCount: 15,
+ deleteCount: 23,
editColumn: 1,
- insertText: '## No space C ##',
+ insertText: '## No space C {MD020} ##',
},
lineNumber: 18,
ruleDescription: 'No space inside hashes on closed atx style heading',
@@ -541,16 +541,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## No space D##',
+ errorContext: '## No space D {MD020}##',
errorDetail: null,
errorRange: [
- 13,
+ 21,
3,
],
fixInfo: {
- deleteCount: 15,
+ deleteCount: 23,
editColumn: 1,
- insertText: '## No space D ##',
+ insertText: '## No space D {MD020} ##',
},
lineNumber: 20,
ruleDescription: 'No space inside hashes on closed atx style heading',
@@ -561,16 +561,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## Multiple spaces E ##',
+ errorContext: '## Multiple spaces E {MD021} ...',
errorDetail: null,
errorRange: [
1,
5,
],
fixInfo: {
- deleteCount: 24,
+ deleteCount: 32,
editColumn: 1,
- insertText: '## Multiple spaces E ##',
+ insertText: '## Multiple spaces E {MD021} ##',
},
lineNumber: 22,
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
@@ -581,16 +581,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## Multiple spaces F ##',
+ errorContext: '... Multiple spaces F {MD021} ##',
errorDetail: null,
errorRange: [
- 20,
+ 28,
5,
],
fixInfo: {
- deleteCount: 24,
+ deleteCount: 32,
editColumn: 1,
- insertText: '## Multiple spaces F ##',
+ insertText: '## Multiple spaces F {MD021} ##',
},
lineNumber: 24,
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
@@ -605,27 +605,29 @@ Generated by [AVA](https://avajs.dev).
␊
␊
␊
- A [reversed](link) example.␊
+ A [reversed](link) example. {MD011}␊
␊
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊
␊
## 123456789 123456789 123456789 123456789 123456789 123456789␊
␊
- command with no output␊
+ command with no output {MD014}␊
␊
- ## No space A␊
+ ## No space A {MD018}␊
␊
- ## Multiple spaces B␊
+ ## Multiple spaces B {MD019}␊
␊
- ## No space C ##␊
+ ## No space C {MD020} ##␊
␊
- ## No space D ##␊
+ ## No space D {MD020} ##␊
␊
- ## Multiple spaces E ##␊
+ ## Multiple spaces E {MD021} ##␊
␊
- ## Multiple spaces F ##␊
+ ## Multiple spaces F {MD021} ##␊
␊
- *Another* [reversed](link) example.␊
+ *Another* [reversed](link) example. {MD011}␊
+ ␊
+ {MD012:7} {MD013:8} {MD013:10}␊
`,
}
@@ -705,12 +707,12 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: 'Punctuation: \'.\'',
errorRange: [
- 19,
+ 27,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 19,
+ editColumn: 27,
},
lineNumber: 6,
ruleDescription: 'Trailing punctuation in heading',
@@ -721,7 +723,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '> Multiple spaces',
+ errorContext: '> Multiple spaces {MD027}',
errorDetail: null,
errorRange: [
1,
@@ -852,20 +854,22 @@ Generated by [AVA](https://avajs.dev).
␊
# Heading␊
␊
- ## Another heading␊
+ ## Another heading {MD026}␊
␊
- > Multiple spaces␊
+ > Multiple spaces {MD027}␊
␊
> Blank line above␊
␊
1. Alpha␊
- 3. Beta␊
+ 3. Beta {MD029} {MD030}␊
␊
- > > Multiple spaces, multiple blockquotes␊
+ > > Multiple spaces, multiple blockquotes {MD027}␊
> >␊
- > > > Multiple spaces, multiple blockquotes␊
+ > > > Multiple spaces, multiple blockquotes {MD027}␊
> > >␊
- > > > Multiple spaces, multiple blockquotes␊
+ > > > Multiple spaces, multiple blockquotes {MD027}␊
+ ␊
+ {MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}␊
`,
}
@@ -1000,7 +1004,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '* List',
+ errorContext: '* List {MD032}',
errorDetail: null,
errorRange: null,
fixInfo: {
@@ -1016,7 +1020,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '* List',
+ errorContext: '* List {MD032}',
errorDetail: null,
errorRange: null,
fixInfo: {
@@ -1082,7 +1086,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Emphasis',
+ errorContext: 'Emphasis {MD036}',
errorDetail: null,
errorRange: null,
fixInfo: null,
@@ -1216,16 +1220,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '* inside',
+ errorContext: '* inside {MD037}',
errorDetail: null,
errorRange: [
7,
- 8,
+ 16,
],
fixInfo: {
- deleteCount: 8,
+ deleteCount: 16,
editColumn: 7,
- insertText: '*inside',
+ insertText: '*inside {MD037}',
},
lineNumber: 62,
ruleDescription: 'Spaces inside emphasis markers',
@@ -1396,16 +1400,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '` code',
+ errorContext: '` code {MD038}',
errorDetail: null,
errorRange: [
6,
- 6,
+ 14,
],
fixInfo: {
- deleteCount: 5,
+ deleteCount: 13,
editColumn: 7,
- insertText: 'code',
+ insertText: 'code {MD038}',
},
lineNumber: 38,
ruleDescription: 'Spaces inside code span elements',
@@ -1456,16 +1460,16 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '```` code',
+ errorContext: '```` code {MD038}',
errorDetail: null,
errorRange: [
11,
- 9,
+ 17,
],
fixInfo: {
- deleteCount: 5,
+ deleteCount: 13,
editColumn: 15,
- insertText: 'code',
+ insertText: 'code {MD038}',
},
lineNumber: 55,
ruleDescription: 'Spaces inside code span elements',
@@ -1573,67 +1577,69 @@ Generated by [AVA](https://avajs.dev).
debugger;␊
\`\`\`␊
␊
- * List␊
+ * List {MD032}␊
␊
- Inline
HTML␊
+ Inline
HTML {MD033}␊
␊
- Bare link␊
+ Bare link {MD034}␊
␊
---␊
***␊
␊
- *Emphasis*␊
+ *Emphasis {MD036}*␊
␊
- Space *inside* emphasis␊
+ Space *inside* emphasis {MD037}␊
␊
- Space \`inside\` code span␊
+ Space \`inside\` code span {MD038}␊
␊
- Space [inside](link) text␊
+ Space [inside](link) text {MD039}␊
␊
\`\`\`␊
\`\`\`␊
␊
- space \`\`inside\`\` code␊
- space \`inside\` of \`code\` elements␊
- \`space\` inside \`of\` code \`elements\`␊
- space \`\`inside\`\` of \`\`code\`\` elements␊
- \`\` \` embedded backtick\`\`␊
- \`\`embedded backtick\` \`\`␊
+ space \`\`inside\`\` code {MD038}␊
+ space \`inside\` of \`code\` elements {MD038}␊
+ \`space\` inside \`of\` code \`elements\` {MD038}␊
+ space \`\`inside\`\` of \`\`code\`\` elements {MD038}␊
+ \`\` \` embedded backtick\`\` {MD038}␊
+ \`\`embedded backtick\` \`\` {MD038}␊
␊
- some *space* in *some* emphasis␊
- some *space* in *some* emphasis␊
- some *space* in **some** emphasis␊
- some _space_ in _some_ emphasis␊
- some __space__ in __some__ emphasis␊
+ some *space* in *some* emphasis {MD037}␊
+ some *space* in *some* emphasis {MD037}␊
+ some *space* in **some** emphasis {MD037}␊
+ some _space_ in _some_ emphasis {MD037}␊
+ some __space__ in __some__ emphasis {MD037}␊
␊
Text␊
- text \`code␊
+ text \`code {MD038}␊
span\` text␊
text.␊
␊
Text␊
text \`code␊
- span\` text␊
+ span\` text {MD038}␊
text.␊
␊
- * List␊
+ * List {MD032}␊
␊
---␊
␊
Text␊
text \`\`\`code␊
span code␊
- span code\`\`\` text␊
+ span code\`\`\` text {MD038}␊
text␊
- text text \`\`\`\`code␊
+ text text \`\`\`\`code {MD038}␊
span code␊
span\`\`\`\` text␊
text.␊
␊
- Text [space](link) text [space](link) text [space](link) text.␊
+ Text [space](link) text [space](link) text [space](link) text. {MD039}␊
␊
- Space *inside␊
- multi-line* emphasis.␊
+ Space *inside {MD037}␊
+ multi-line* emphasis. {MD037}␊
+ ␊
+ {MD031:3} {MD035:11} {MD040:21}␊
`,
}
@@ -1644,7 +1650,7 @@ Generated by [AVA](https://avajs.dev).
{
errors: [
{
- errorContext: 'Not a heading',
+ errorContext: 'Not a heading {MD041}',
errorDetail: null,
errorRange: null,
fixInfo: null,
@@ -1825,11 +1831,11 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: null,
errorRange: [
- 25,
+ 41,
1,
],
fixInfo: {
- editColumn: 26,
+ editColumn: 42,
insertText: `␊
`,
},
@@ -2121,55 +2127,55 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `Not a heading␊
+ fixed: `Not a heading {MD041}␊
␊
- An [empty]() link␊
+ An [empty]() link {MD042}␊
␊
- An [empty](#) link with fragment␊
+ An [empty](#) link with fragment {MD042}␊
␊
- An [empty](<>) link with angle brackets␊
+ An [empty](<>) link with angle brackets {MD042}␊
␊
- This is a test file for the markdownlint package.␊
+ This is a test file for the markdownlint package. {MD044}␊
␊
This is a paragraph␊
- about markdownlint␊
+ about markdownlint {MD044}␊
that capitalizes the␊
name wrong twice:␊
- markdownlint.␊
+ markdownlint. {MD044}␊
␊
- A [normal](link) and an [empty one]() and a [fragment](#one).␊
+ A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}␊
␊
- An image without alternate text ␊
+ An image without alternate text  {MD045}␊
␊
\`\`\`text␊
Fenced code␊
\`\`\`␊
␊
- Indented code␊
+ Indented code {MD046}␊
␊
~~~text␊
- Fenced code␊
+ Fenced code {MD048:27}␊
~~~␊
␊
- Mixed *emphasis* on *this* line *with* multiple *issues*␊
+ Mixed *emphasis* on *this* line *with* multiple *issues* {MD049}␊
␊
- Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__␊
+ Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__ {MD050}␊
␊
Inconsistent␊
- emphasis _text␊
+ emphasis _text {MD049}␊
spanning_ many␊
lines␊
␊
Inconsistent␊
- strong **emphasis␊
+ strong **emphasis {MD050}␊
spanning** many␊
lines␊
␊
- Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis.␊
+ Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis. {MD049}␊
␊
- Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis.␊
+ Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊
␊
- Missing newline character␊
+ Missing newline character {MD043} {MD047}␊
`,
}
@@ -2195,10 +2201,50 @@ Generated by [AVA](https://avajs.dev).
'link-fragments',
],
},
+ {
+ errorContext: '[link with a][undefined-label]',
+ errorDetail: 'Missing link or image reference definition: "undefined-label"',
+ errorRange: [
+ 3,
+ 30,
+ ],
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Reference links and images should use a label that is defined',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md052',
+ ruleNames: [
+ 'MD052',
+ 'reference-links-images',
+ ],
+ },
+ {
+ errorContext: '[unused-label]: {MD053}',
+ errorDetail: 'Unused link or image reference definition: "unused-label"',
+ errorRange: [
+ 1,
+ 23,
+ ],
+ fixInfo: {
+ deleteCount: -1,
+ },
+ lineNumber: 10,
+ ruleDescription: 'Link and image reference definitions should be needed',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md053',
+ ruleNames: [
+ 'MD053',
+ 'link-image-reference-definitions',
+ ],
+ },
],
fixed: `# detailed-results-MD051-MD060␊
␊
- A [link with a missing](#fragment)␊
+ A [link with a missing](#fragment) {MD051}␊
+ ␊
+ A [link with a][defined-label]␊
+ ␊
+ A [link with a][undefined-label] {MD052}␊
+ ␊
+ [defined-label]: https://example.com␊
`,
}
@@ -2883,17 +2929,17 @@ Generated by [AVA](https://avajs.dev).
],
fixed: `# Detailed Results Bare URLs␊
␊
- For more, see .␊
+ For more, see . {MD034}␊
␊
- For more, see .␊
+ For more, see . {MD034}␊
␊
- For more, see .␊
+ For more, see . {MD034}␊
␊
- For more, see .␊
+ For more, see . {MD034}␊
␊
- Visit , then refresh.␊
+ Visit , then refresh. {MD034}␊
␊
- The site () is down.␊
+ The site () is down. {MD034}␊
`,
}
@@ -3395,6 +3441,11 @@ Generated by [AVA](https://avajs.dev).
> > - \`\`\`text␊
> > Text␊
> > \`\`\`␊
+ ␊
+ {MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊
+ {MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊
+ {MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊
+ {MD031:66} {MD031:68} {MD031:69}␊
`,
}
@@ -3405,7 +3456,7 @@ Generated by [AVA](https://avajs.dev).
{
errors: [
{
- errorContext: '## Banana',
+ errorContext: '## Banana {MD022}',
errorDetail: 'Expected: 2; Actual: 1; Below',
errorRange: null,
fixInfo: {
@@ -3423,7 +3474,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Elderberry',
+ errorContext: 'Elderberry {MD022}',
errorDetail: 'Expected: 2; Actual: 0; Below',
errorRange: null,
fixInfo: {
@@ -3449,7 +3500,7 @@ Generated by [AVA](https://avajs.dev).
␊
␊
Text␊
- ## Banana␊
+ ## Banana {MD022}␊
␊
␊
Text␊
@@ -3463,8 +3514,8 @@ Generated by [AVA](https://avajs.dev).
Text␊
␊
---␊
- Elderberry␊
- ----------␊
+ Elderberry {MD022}␊
+ ------------------␊
␊
␊
Text␊
@@ -3479,7 +3530,7 @@ Generated by [AVA](https://avajs.dev).
{
errors: [
{
- errorContext: '## Durian ##',
+ errorContext: '## Durian {MD022} ##',
errorDetail: 'Expected: 3; Actual: 2; Above',
errorRange: null,
fixInfo: {
@@ -3496,7 +3547,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Elderberry',
+ errorContext: 'Elderberry {MD022}',
errorDetail: 'Expected: 3; Actual: 1; Above',
errorRange: null,
fixInfo: {
@@ -3533,13 +3584,13 @@ Generated by [AVA](https://avajs.dev).
␊
␊
␊
- ## Durian ##␊
+ ## Durian {MD022} ##␊
Text␊
␊
␊
␊
- Elderberry␊
- ----------␊
+ Elderberry {MD022}␊
+ ------------------␊
Text␊
␊
␊
@@ -3555,7 +3606,7 @@ Generated by [AVA](https://avajs.dev).
{
errors: [
{
- errorContext: '## Banana',
+ errorContext: '## Banana {MD022}',
errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
@@ -3573,7 +3624,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## Durian ##',
+ errorContext: '## Durian {MD022} ##',
errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
@@ -3590,7 +3641,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Elderberry',
+ errorContext: 'Elderberry {MD022}',
errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
@@ -3607,7 +3658,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Elderberry',
+ errorContext: 'Elderberry {MD022}',
errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
@@ -3631,7 +3682,7 @@ Generated by [AVA](https://avajs.dev).
␊
Text␊
␊
- ## Banana␊
+ ## Banana {MD022}␊
␊
Text␊
␊
@@ -3639,14 +3690,14 @@ Generated by [AVA](https://avajs.dev).
␊
Text␊
␊
- ## Durian ##␊
+ ## Durian {MD022} ##␊
␊
Text␊
␊
---␊
␊
- Elderberry␊
- ----------␊
+ Elderberry {MD022}␊
+ ------------------␊
␊
Text␊
␊
@@ -7783,6 +7834,8 @@ Generated by [AVA](https://avajs.dev).
> > \`\`\`␊
> >␊
> > Text␊
+ ␊
+ {MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}␊
`,
}
@@ -8933,14 +8986,14 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Column: 27',
+ errorDetail: 'Column: 35',
errorRange: [
- 27,
+ 35,
3,
],
fixInfo: {
deleteCount: 3,
- editColumn: 27,
+ editColumn: 35,
insertText: ' ',
},
lineNumber: 3,
@@ -8952,9 +9005,9 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: ` text␊
- text and text 2␊
- texts with trailing spaces ␊
+ fixed: ` text {MD010}␊
+ text and text 2 {MD010}␊
+ texts with trailing spaces {MD010} ␊
`,
}
@@ -10883,12 +10936,12 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: 'Expected: 0 or 2; Actual: 3',
errorRange: [
- 15,
+ 23,
3,
],
fixInfo: {
deleteCount: 3,
- editColumn: 15,
+ editColumn: 23,
},
lineNumber: 6,
ruleDescription: 'Trailing spaces',
@@ -10899,7 +10952,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '# Fixing with Front Matter',
+ errorContext: '# Fixing with Front Matter {MD022}',
errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
@@ -10917,7 +10970,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '## Nested Heading',
+ errorContext: '## Nested Heading {MD022}',
errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
@@ -10957,11 +11010,11 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: null,
errorRange: [
- 4,
+ 12,
1,
],
fixInfo: {
- editColumn: 5,
+ editColumn: 13,
insertText: `␊
`,
},
@@ -10978,15 +11031,15 @@ Generated by [AVA](https://avajs.dev).
front: matter␊
ignore: this␊
---␊
- # Fixing with Front Matter␊
+ # Fixing with Front Matter {MD022}␊
␊
- Text text text␊
+ Text text text {MD009}␊
␊
- Text [link](url) text␊
+ Text [link](url) text {MD039}␊
␊
- ## Nested Heading␊
+ ## Nested Heading {MD022}␊
␊
- Text␊
+ Text {MD047}␊
`,
}
@@ -11073,12 +11126,12 @@ Generated by [AVA](https://avajs.dev).
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
- 5,
+ 13,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
+ editColumn: 13,
},
lineNumber: 6,
ruleDescription: 'Trailing spaces',
@@ -11089,7 +11142,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'Text',
+ errorContext: 'Text {MD041}',
errorDetail: null,
errorRange: null,
fixInfo: null,
@@ -11106,9 +11159,9 @@ Generated by [AVA](https://avajs.dev).
fixed: `---␊
front: matter␊
---␊
- Text␊
+ Text {MD041}␊
␊
- Text␊
+ Text {MD009}␊
`,
}
@@ -15414,28 +15467,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
{
- errors: [
- {
- errorContext: null,
- errorDetail: null,
- errorRange: [
- 25,
- 1,
- ],
- fixInfo: {
- editColumn: 26,
- insertText: `␊
- `,
- },
- lineNumber: 55,
- ruleDescription: 'Files should end with a single newline character',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047',
- ruleNames: [
- 'MD047',
- 'single-trailing-newline',
- ],
- },
- ],
+ errors: [],
fixed: `# HTML Comment in List Item␊
␊
- item␊
@@ -15489,8 +15521,6 @@ Generated by [AVA](https://avajs.dev).
\`\`\`␊
␊
- item␊
- ␊
- Placeholder issue {MD047}␊
`,
}
@@ -16223,9 +16253,9 @@ Generated by [AVA](https://avajs.dev).
␊
Text␊
␊
- Block block␊
+ Block block {MD033}␊
␊
- Text inline inline text␊
+ Text inline inline {MD033} text␊
␊
Text␊
␊
@@ -16236,50 +16266,50 @@ Generated by [AVA](https://avajs.dev).
Text␊
␊
␊
- Block␊
- block block block␊
+ Block {MD033:17}␊
+ block block {MD033} block␊
block␊
block block block␊
block␊
- block block block block block␊
- block block block block block␊
+ block block block block block {MD033}␊
+ block block block block block {MD033}␊
␊
␊
Text␊
␊
- Block block␊
+ Block block {MD033}␊
␊
- Text inline inline text␊
+ Text inline inline {MD033} text␊
␊
Text␊
␊
- Block block␊
+ Block block {MD033}␊
␊
- Text inline inline text␊
+ Text inline inline {MD033} text␊
␊
Text␊
␊
- Text inline text inline text inline text␊
+ Text inline text inline text inline text {MD033}␊
␊
- Text inline text inline text inline text␊
+ Text inline text inline text inline {MD033}␊
␊
Text␊
␊
\\Block block\\␊
␊
- \\\\Block block\\\\␊
+ \\\\Block block {MD033}\\\\␊
␊
Block block␊
␊
Text \\inline inline\\ text␊
␊
- Text \\\\inline inline\\\\ text␊
+ Text \\\\inline inline {MD033}\\\\ text␊
␊
Text inline inline text␊
␊
Text␊
␊
- > Text inline inline text␊
+ > Text inline inline {MD033} text␊
> text inline inline text␊
␊
Text␊
@@ -16302,14 +16332,14 @@ Generated by [AVA](https://avajs.dev).
␊
Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊
␊
- Text \`\` text inline text␊
+ Text \`\` text inline {MD033} text␊
␊
Text \`\`text text\`\` text␊
␊
Text␊
␊
- Text inline text␊
- text
text␊
+ Text inline {MD033} text␊
+ text
text {MD033}␊
␊
Text␊
␊
@@ -16319,7 +16349,7 @@ Generated by [AVA](https://avajs.dev).
␊
Text␊
␊
- is an HTML element.␊
+ is an HTML element. {MD033}␊
␊
But is not an autolink or HTML element.␊
And neither is .␊
@@ -22033,20 +22063,20 @@ Generated by [AVA](https://avajs.dev).
],
fixed: `# Detailed Link Results␊
␊
- Text text␊
+ Text text {MD034}␊
␊
- Text text text␊
+ Text text text {MD034}␊
␊
- Text text text␊
+ Text text text {MD034}␊
␊
- Text \`code https://example.com/code code\` text text␊
+ Text \`code https://example.com/code code\` text text {MD034}␊
␊
- > Text text text␊
+ > Text text text {MD034}␊
␊
- Text ␊
- text ␊
+ Text {MD034}␊
+ text {MD034}␊
text ␊
- text ␊
+ text {MD034}␊
␊
\`\`\`text␊
Code https://example.com/code?type=fence code␊
@@ -22054,25 +22084,25 @@ Generated by [AVA](https://avajs.dev).
␊
Code https://example.com/code?type=indent code␊
␊
- Text more text still more text done␊
+ Text more text still more text done {MD034}␊
␊
- Text more \\* text https://example.com/same more \\[ text done␊
+ Text more \\* text https://example.com/same more \\[ text done {MD034}␊
␊
- Text more text still more text done␊
+ Text more text still more text done {MD034}␊
␊
- [Incorrect link syntax](https://www.example.com/)␊
+ [Incorrect link syntax](https://www.example.com/) {MD011}␊
␊
- Text [link](https://example.com/) text.␊
+ Text [link](https://example.com/) text. {MD039}␊
␊
- Text [link](https://example.com/) text.␊
+ Text [link](https://example.com/) text. {MD039}␊
␊
- Text [link](https://example.com/) text.␊
+ Text [link](https://example.com/) text. {MD039}␊
␊
- Text [link][reference] text.␊
+ Text [link][reference] text. {MD039}␊
␊
- Text [link][reference] text.␊
+ Text [link][reference] text. {MD039}␊
␊
- Text [link][reference] text.␊
+ Text [link][reference] text. {MD039}␊
␊
[reference]: https://example.com/␊
`,
@@ -30188,14 +30218,14 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Column: 27',
+ errorDetail: 'Column: 34',
errorRange: [
- 27,
+ 34,
3,
],
fixInfo: {
deleteCount: 3,
- editColumn: 27,
+ editColumn: 34,
insertText: '',
},
lineNumber: 3,
@@ -30207,9 +30237,9 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `text␊
- text and text 2␊
- texts with trailing spaces␊
+ fixed: `text {MD010}␊
+ text and text 2 {MD010}␊
+ texts with trailing spaces{MD010}␊
`,
}
@@ -31132,7 +31162,7 @@ Generated by [AVA](https://avajs.dev).
],
fixed: `# Ordered list examples␊
␊
- 9. Item␊
+ 9. Item {MD029}␊
`,
}
@@ -31249,15 +31279,15 @@ Generated by [AVA](https://avajs.dev).
␊
text␊
␊
- 1. Item␊
- 1. Item␊
- 1. Item␊
+ 1. Item {MD029}␊
+ 1. Item {MD029}␊
+ 1. Item {MD029}␊
␊
text␊
␊
- 1. Item␊
- 2. Item␊
- 3. Item␊
+ 1. Item {MD029}␊
+ 2. Item {MD029}␊
+ 3. Item {MD029}␊
`,
}
@@ -32302,37 +32332,37 @@ Generated by [AVA](https://avajs.dev).
],
fixed: `# Detailed Results Proper Names␊
␊
- Text markdownlint text.␊
+ Text markdownlint text. {MD044}␊
␊
- Text Node.js text.␊
+ Text Node.js text. {MD044}␊
␊
- Text .NET text.␊
+ Text .NET text. {MD044}␊
␊
- Text example.NET text.␊
+ Text example.NET text. {MD044}␊
␊
- Text "markdownlint" text.␊
+ Text "markdownlint" text. {MD044}␊
␊
- Text "Node.js" text.␊
+ Text "Node.js" text. {MD044}␊
␊
- Text ".NET" text.␊
+ Text ".NET" text. {MD044}␊
␊
- Text "example.NET" text.␊
+ Text "example.NET" text. {MD044}␊
␊
- Text **markdownlint** text.␊
+ Text **markdownlint** text. {MD044}␊
␊
- Text **Node.js** text.␊
+ Text **Node.js** text. {MD044}␊
␊
- Text **.NET** text.␊
+ Text **.NET** text. {MD044}␊
␊
- Text **example.NET** text.␊
+ Text **example.NET** text. {MD044}␊
␊
- markdownlint␊
+ markdownlint {MD044}␊
␊
- Node.js␊
+ Node.js {MD044}␊
␊
- .NET␊
+ .NET {MD044}␊
␊
- example.NET␊
+ example.NET {MD044}␊
`,
}
diff --git a/test/snapshots/markdownlint-test-scenarios.js.snap b/test/snapshots/markdownlint-test-scenarios.js.snap
index 70494757..6eee007d 100644
Binary files a/test/snapshots/markdownlint-test-scenarios.js.snap and b/test/snapshots/markdownlint-test-scenarios.js.snap differ