mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
feat: validate relative links fragments
Similar to https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md Fixes #2 BREAKING CHANGE: Validate links fragments in relative links
This commit is contained in:
14
test/fixtures/Invalid.md
vendored
14
test/fixtures/Invalid.md
vendored
@ -3,3 +3,17 @@
|
||||
[basic.js](./basic.test.js)
|
||||
|
||||

|
||||
|
||||
[Link fragment](./Valid.md#not-existing-heading)
|
||||
|
||||
## Existing Heading
|
||||
|
||||
### Repeated Heading
|
||||
|
||||
Text
|
||||
|
||||
### Repeated Heading
|
||||
|
||||
Text
|
||||
|
||||
### Repeated Heading
|
||||
|
8
test/fixtures/Valid.md
vendored
8
test/fixtures/Valid.md
vendored
@ -11,3 +11,11 @@
|
||||
[External https link 2](https:./external.https)
|
||||
|
||||
[External ftp link](ftp:./external.ftp)
|
||||
|
||||
[Link fragment](./Invalid.md#existing-heading)
|
||||
|
||||
[Link fragment Repeated 0](./Invalid.md#repeated-heading)
|
||||
|
||||
[Link fragment Repeated 1](./Invalid.md#repeated-heading-1)
|
||||
|
||||
[Link fragment Repeated 2](./Invalid.md#repeated-heading-2)
|
||||
|
Reference in New Issue
Block a user