Skip to content

Commit

Permalink
Add tests for MD051/link-fragments to validate quotes and accented ch…
Browse files Browse the repository at this point in the history
…aracters (refs #536).
  • Loading branch information
DavidAnson committed Jul 21, 2022
1 parent 1bd748f commit 59a4a56
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 12 additions & 0 deletions test/link-fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@

[Valid](#valid-heading-with-embedded--comment)

[Valid](#the-best-headin-for-testin-quotes)

[Valid](#valid-heading-about-lh%C3%B4pitals-rule)

[Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)

[Valid](#namedlink)

[Valid](#idlink)
Expand Down Expand Up @@ -105,6 +111,12 @@ Text

### Valid Heading With Embedded <!-- comment --> Comment

### The "Best" Headin' for Testin' Quotes

### Valid Heading About L'Hôpital's Rule

### En-tête Valide Dans Français Pour Vérification

<a name="namedlink"></a>

<a id = idlink></a>
Expand Down
24 changes: 18 additions & 6 deletions test/snapshots/markdownlint-test-scenarios.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -20950,7 +20950,7 @@ Generated by [AVA](https://avajs.dev).
31,
],
fixInfo: null,
lineNumber: 120,
lineNumber: 132,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand All @@ -20966,7 +20966,7 @@ Generated by [AVA](https://avajs.dev).
36,
],
fixInfo: null,
lineNumber: 122,
lineNumber: 134,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand All @@ -20982,7 +20982,7 @@ Generated by [AVA](https://avajs.dev).
28,
],
fixInfo: null,
lineNumber: 124,
lineNumber: 136,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand All @@ -20998,7 +20998,7 @@ Generated by [AVA](https://avajs.dev).
18,
],
fixInfo: null,
lineNumber: 126,
lineNumber: 138,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand All @@ -21014,7 +21014,7 @@ Generated by [AVA](https://avajs.dev).
21,
],
fixInfo: null,
lineNumber: 128,
lineNumber: 140,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand All @@ -21027,7 +21027,7 @@ Generated by [AVA](https://avajs.dev).
errorDetail: null,
errorRange: null,
fixInfo: null,
lineNumber: 130,
lineNumber: 142,
ruleDescription: 'Link fragments should be valid',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051',
ruleNames: [
Expand Down Expand Up @@ -21076,6 +21076,12 @@ Generated by [AVA](https://avajs.dev).
[Valid](#valid-heading-with-embedded--comment)␊
[Valid](#the-best-headin-for-testin-quotes)␊
[Valid](#valid-heading-about-lh%C3%B4pitals-rule)␊
[Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)␊
[Valid](#namedlink)␊
[Valid](#idlink)␊
Expand Down Expand Up @@ -21143,6 +21149,12 @@ Generated by [AVA](https://avajs.dev).
### Valid Heading With Embedded <!-- comment --> Comment␊
### The "Best" Headin' for Testin' Quotes␊
### Valid Heading About L'Hôpital's Rule␊
### En-tête Valide Dans Français Pour Vérification␊
<a name="namedlink"></a>␊
<a id = idlink></a>␊
Expand Down
Binary file modified test/snapshots/markdownlint-test-scenarios.js.snap
Binary file not shown.

0 comments on commit 59a4a56

Please sign in to comment.