mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD034/no-bare-urls to better handle multiple similar issues on the same line (fixes https://github.com/igorshubovych/markdownlint-cli/issues/339).
This commit is contained in:
parent
ce5d393109
commit
cba5e8d340
7 changed files with 290 additions and 119 deletions
|
|
@ -29,3 +29,21 @@ As is <a href="https://example.com/info.htm">https://example.com/info.htm text</
|
|||
<br> Another violation: https://example.com. {MD034} <br>
|
||||
|
||||
<br/> Another violation: https://example.com. {MD034} <br/>
|
||||
|
||||
This is not a bare [link]( https://example.com ).
|
||||
|
||||
URLs in HTML are not bare:
|
||||
|
||||
<element-name first-attribute=" https://example.com/first " second-attribute=" https://example.com/second ">
|
||||
Text
|
||||
</element-name>
|
||||
|
||||
<element-name
|
||||
first-attribute=" https://example.com/first "
|
||||
second-attribute=" https://example.com/second "></element-name>
|
||||
|
||||
URLs in link and image text are not bare:
|
||||
|
||||
Text [link to https://example.com site](https://example.com) text.
|
||||
|
||||
Image  text.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue