Update tests to verify long lines inside HTML comments trigger MD013/line-length (closes #703).

This commit is contained in:
David Anson 2023-02-27 18:35:52 -08:00
parent 3cedb5a5b8
commit 81f35edd6c
3 changed files with 106 additions and 0 deletions

View file

@ -59,3 +59,16 @@ _**[This long line is comprised of an emphasized and bolded link {MD049}](https:
**![Reference style for long line image which is itself an example of a long line with content][image]** **![Reference style for long line image which is itself an example of a long line with content][image]**
[image]: https://example.com "Title text for long line image example using reference style for image details" [image]: https://example.com "Title text for long line image example using reference style for image details"
<!--
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}
-->
<!--
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}
-->
<!-- Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013} -->
Long lines inside HTML comments should also <!-- produce a violation of the line-length rule. {MD013} -->

View file

@ -29352,6 +29352,86 @@ Generated by [AVA](https://avajs.dev).
'line-length', 'line-length',
], ],
}, },
{
errorContext: null,
errorDetail: 'Expected: 80; Actual: 96',
errorRange: [
81,
16,
],
fixInfo: null,
lineNumber: 64,
ruleDescription: 'Line length',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
'MD013',
'line-length',
],
},
{
errorContext: null,
errorDetail: 'Expected: 80; Actual: 96',
errorRange: [
81,
16,
],
fixInfo: null,
lineNumber: 68,
ruleDescription: 'Line length',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
'MD013',
'line-length',
],
},
{
errorContext: null,
errorDetail: 'Expected: 80; Actual: 96',
errorRange: [
81,
16,
],
fixInfo: null,
lineNumber: 69,
ruleDescription: 'Line length',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
'MD013',
'line-length',
],
},
{
errorContext: null,
errorDetail: 'Expected: 80; Actual: 105',
errorRange: [
81,
25,
],
fixInfo: null,
lineNumber: 72,
ruleDescription: 'Line length',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
'MD013',
'line-length',
],
},
{
errorContext: null,
errorDetail: 'Expected: 80; Actual: 105',
errorRange: [
81,
25,
],
fixInfo: null,
lineNumber: 74,
ruleDescription: 'Line length',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
'MD013',
'line-length',
],
},
{ {
errorContext: null, errorContext: null,
errorDetail: 'Expected: indented; Actual: fenced', errorDetail: 'Expected: indented; Actual: fenced',
@ -29495,6 +29575,19 @@ Generated by [AVA](https://avajs.dev).
**![Reference style for long line image which is itself an example of a long line with content][image]**␊ **![Reference style for long line image which is itself an example of a long line with content][image]**␊
[image]: https://example.com "Title text for long line image example using reference style for image details"␊ [image]: https://example.com "Title text for long line image example using reference style for image details"␊
<!--
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}␊
-->␊
<!--
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}␊
Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013}␊
-->␊
<!-- Long lines inside HTML comments should also produce a violation of the line-length rule. {MD013} -->
Long lines inside HTML comments should also <!-- produce a violation of the line-length rule. {MD013} -->
`, `,
} }