Add MD042 no-empty-links "No empty links" (fixes #24).

This commit is contained in:
David Anson 2016-06-27 22:19:02 -07:00
parent efe9c9e73c
commit 2612a96ae8
7 changed files with 95 additions and 17 deletions

View file

@ -1004,3 +1004,25 @@ To fix this, add a header to the top of your file:
This is a file with a top level header
```
## MD042 - No empty links
Tags: links
Aliases: no-empty-links
This rule is triggered when an empty link is encountered:
[an empty link]()
To fix the violation, provide a destination for the link:
[a valid link](https://example.com/)
Empty fragments will trigger this rule:
[an empty fragment](#)
But non-empty fragments will not:
[a valid fragment](#fragment)