mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
feat: improve errors message to distinguish between file system and fragment errors
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
**markdownlint-rule-relative-links** is a [markdownlint](https://github.com/DavidAnson/markdownlint) custom rule to validate relative links.
|
||||
|
||||
It ensures that relative links (using `file:` protocol) are working and not "dead" which means that it exists in the file system of the project that uses [markdownlint](https://github.com/DavidAnson/markdownlint).
|
||||
It ensures that relative links (using `file:` protocol) are working and exists in the file system of the project that uses [markdownlint](https://github.com/DavidAnson/markdownlint).
|
||||
|
||||
### Example
|
||||
|
||||
@ -37,13 +37,13 @@ With `awesome.md` content:
|
||||
```md
|
||||
[abc](./abc.txt)
|
||||
|
||||
[Dead link](./dead.txt)
|
||||
[Invalid link](./invalid.txt)
|
||||
```
|
||||
|
||||
Running [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) with `markdownlint-rule-relative-links` will output:
|
||||
|
||||
```sh
|
||||
awesome.md:3 relative-links Relative links should be valid [Link "./dead.txt" is dead]
|
||||
awesome.md:3 relative-links Relative links should be valid [Link "./invalid.txt" should exist in the file system]
|
||||
```
|
||||
|
||||
### Related links
|
||||
|
Reference in New Issue
Block a user