diff --git a/test/snapshots/markdownlint-test-scenarios.js.md b/test/snapshots/markdownlint-test-scenarios.js.md index bda53c0e..d5a11355 100644 --- a/test/snapshots/markdownlint-test-scenarios.js.md +++ b/test/snapshots/markdownlint-test-scenarios.js.md @@ -35208,7 +35208,7 @@ Generated by [AVA](https://avajs.dev). 15, ], fixInfo: null, - lineNumber: 70, + lineNumber: 72, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35224,7 +35224,7 @@ Generated by [AVA](https://avajs.dev). 15, ], fixInfo: null, - lineNumber: 72, + lineNumber: 74, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35240,7 +35240,23 @@ Generated by [AVA](https://avajs.dev). 14, ], fixInfo: null, - lineNumber: 74, + lineNumber: 76, + ruleDescription: 'Reference links and images should use a label that is defined', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', + ruleNames: [ + 'MD052', + 'reference-links-images', + ], + }, + { + errorContext: '[text][missing]', + errorDetail: 'Missing link or image reference definition: "missing"', + errorRange: [ + 32, + 15, + ], + fixInfo: null, + lineNumber: 79, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35256,7 +35272,7 @@ Generated by [AVA](https://avajs.dev). 16, ], fixInfo: null, - lineNumber: 121, + lineNumber: 125, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35272,7 +35288,7 @@ Generated by [AVA](https://avajs.dev). 16, ], fixInfo: null, - lineNumber: 123, + lineNumber: 127, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35288,7 +35304,7 @@ Generated by [AVA](https://avajs.dev). 25, ], fixInfo: null, - lineNumber: 217, + lineNumber: 222, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35304,7 +35320,7 @@ Generated by [AVA](https://avajs.dev). 10, ], fixInfo: null, - lineNumber: 231, + lineNumber: 236, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ @@ -35322,7 +35338,7 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: -1, }, - lineNumber: 193, + lineNumber: 198, ruleDescription: 'Link and image reference definitions should be needed', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ @@ -35340,7 +35356,7 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: -1, }, - lineNumber: 195, + lineNumber: 200, ruleDescription: 'Link and image reference definitions should be needed', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ @@ -35358,7 +35374,7 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: -1, }, - lineNumber: 197, + lineNumber: 202, ruleDescription: 'Link and image reference definitions should be needed', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ @@ -35374,7 +35390,7 @@ Generated by [AVA](https://avajs.dev). 44, ], fixInfo: null, - lineNumber: 201, + lineNumber: 206, ruleDescription: 'Link and image reference definitions should be needed', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ @@ -35390,7 +35406,7 @@ Generated by [AVA](https://avajs.dev). 44, ], fixInfo: null, - lineNumber: 204, + lineNumber: 209, ruleDescription: 'Link and image reference definitions should be needed', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ @@ -35460,6 +35476,8 @@ Generated by [AVA](https://avajs.dev). ␊ Use of multi-line label: [multi-line-label][]␊ ␊ + Use of link in label: [link-in-label][]␊ + ␊ Standard link: [text](https://example.com/standard)␊ ␊ Wrapped in brackets: [[text][unique0]] [[unique1][]] [[unique2]]␊ @@ -35475,6 +35493,8 @@ Generated by [AVA](https://avajs.dev). Missing multi-line label {MD052}: [text][missing␊ label]␊ ␊ + > Missing label in blockquote: [text][missing] {MD052}␊ + ␊ ## Non-Links␊ ␊ Space: [text] [wrong]␊ @@ -35568,6 +35588,7 @@ Generated by [AVA](https://avajs.dev). [colon]: https://example.com/colon␊ [multi-line-label]:␊ https://example.com/multi-line-label␊ + [link-in-label]: https://example.com/path?[brackets][]␊ [unique0]: https://example.com/unique0␊ [unique1]: https://example.com/unique1␊ [unique2]: https://example.com/unique2␊ diff --git a/test/snapshots/markdownlint-test-scenarios.js.snap b/test/snapshots/markdownlint-test-scenarios.js.snap index b8001eda..21fe8ce8 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.js.snap and b/test/snapshots/markdownlint-test-scenarios.js.snap differ