mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD042 no-empty-links "No empty links" (fixes #24).
This commit is contained in:
parent
efe9c9e73c
commit
2612a96ae8
7 changed files with 95 additions and 17 deletions
31
test/empty-links.md
Normal file
31
test/empty-links.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Heading
|
||||
|
||||
## Empty links
|
||||
|
||||
[text]() {MD042}
|
||||
|
||||
[text](<>) {MD042}
|
||||
|
||||
[text](#) {MD042}
|
||||
|
||||
[text][frag] {MD042}
|
||||
|
||||
[frag]: #
|
||||
|
||||
## Non-empty links
|
||||
|
||||
[text](link)
|
||||
|
||||
[text](link "title")
|
||||
|
||||
[text](<link>)
|
||||
|
||||
[text](#frag)
|
||||
|
||||
[text][ref]
|
||||
|
||||
[ref]: link
|
||||
|
||||
[text]
|
||||
|
||||
[text]: link
|
||||
Loading…
Add table
Add a link
Reference in a new issue