mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-05 15:38:49 +01:00
Add rule MD059/descriptive-link-text "Link text should be descriptive" (fixes #681).
This commit is contained in:
parent
4117394250
commit
b8374ec5d2
40 changed files with 1159 additions and 234 deletions
23
test/descriptive-link-text-override.md
Normal file
23
test/descriptive-link-text-override.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Descriptive link text override
|
||||
|
||||
[Go here](https://example.com/javascript/about) {MD059}
|
||||
|
||||
[Learn more](https://example.com/javascript/about).
|
||||
|
||||
[Click here](https://example.com/javascript/about).
|
||||
|
||||
To learn more, go [here!](https://example.com/site).
|
||||
|
||||
To learn more, go to this [link!](https://example.com/links).
|
||||
|
||||
If you need additional guidance, read [this](https://example.com/links). {MD059}
|
||||
|
||||
[link][url]
|
||||
|
||||
[url]: https://example.com
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"descriptive-link-text": {
|
||||
"link_texts": ["go here", "this"]
|
||||
}
|
||||
} -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue