mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD054/link-image-style handling of url_inline to ensure link and destination match and that the destination is autolink-able (fixes #1040).
This commit is contained in:
parent
ff465262c9
commit
41bc8465d2
7 changed files with 86 additions and 2 deletions
|
|
@ -29,6 +29,24 @@ Text <https://example.com> text {MD054}
|
|||
[url]: https://example.com
|
||||
[url-title]: https://example.com "title"
|
||||
|
||||
Text [link](https://example.com) text
|
||||
|
||||
Text  text
|
||||
|
||||
Text [link][url] text
|
||||
|
||||
Text ![link][url] text
|
||||
|
||||
Text [url][] text
|
||||
|
||||
Text ![url][] text
|
||||
|
||||
Text [url] text
|
||||
|
||||
Text ![url] text
|
||||
|
||||
Text [file.md](file.md) text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"link-image-style": {
|
||||
"autolink": false,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,24 @@ Text <https://example.com> text
|
|||
[url]: https://example.com
|
||||
[url-title]: https://example.com "title"
|
||||
|
||||
Text [link](https://example.com) text
|
||||
|
||||
Text  text
|
||||
|
||||
Text [link][url] text
|
||||
|
||||
Text ![link][url] text
|
||||
|
||||
Text [url][] text
|
||||
|
||||
Text ![url][] text
|
||||
|
||||
Text [url] text
|
||||
|
||||
Text ![url] text
|
||||
|
||||
Text [file.md](file.md) text
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"link-image-style": {
|
||||
"url_inline": false
|
||||
|
|
|
|||
|
|
@ -27049,6 +27049,24 @@ Generated by [AVA](https://avajs.dev).
|
|||
[url]: https://example.com␊
|
||||
[url-title]: https://example.com "title"␊
|
||||
␊
|
||||
Text [link](https://example.com) text␊
|
||||
␊
|
||||
Text  text␊
|
||||
␊
|
||||
Text [link][url] text␊
|
||||
␊
|
||||
Text ![link][url] text␊
|
||||
␊
|
||||
Text [url][] text␊
|
||||
␊
|
||||
Text ![url][] text␊
|
||||
␊
|
||||
Text [url] text␊
|
||||
␊
|
||||
Text ![url] text␊
|
||||
␊
|
||||
Text [file.md](file.md) text␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"link-image-style": {␊
|
||||
"autolink": false,␊
|
||||
|
|
@ -27136,6 +27154,24 @@ Generated by [AVA](https://avajs.dev).
|
|||
[url]: https://example.com␊
|
||||
[url-title]: https://example.com "title"␊
|
||||
␊
|
||||
Text [link](https://example.com) text␊
|
||||
␊
|
||||
Text  text␊
|
||||
␊
|
||||
Text [link][url] text␊
|
||||
␊
|
||||
Text ![link][url] text␊
|
||||
␊
|
||||
Text [url][] text␊
|
||||
␊
|
||||
Text ![url][] text␊
|
||||
␊
|
||||
Text [url] text␊
|
||||
␊
|
||||
Text ![url] text␊
|
||||
␊
|
||||
Text [file.md](file.md) text␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"link-image-style": {␊
|
||||
"url_inline": false␊
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue