2020-06-21 21:47:32 -07:00
|
|
|
# Detailed Results Bare URLs
|
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
For more, see https://example.com. {MD034}
|
2020-06-21 21:47:32 -07:00
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
For more, see https://example.com/. {MD034}
|
2020-06-21 21:47:32 -07:00
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
For more, see https://example.com/?query=string#hash. {MD034}
|
2020-06-21 21:47:32 -07:00
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
For more, see https://example.com/info.htm. {MD034}
|
2020-06-21 21:47:32 -07:00
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
Visit https://example.com, then refresh. {MD034}
|
2020-06-21 21:47:32 -07:00
|
|
|
|
2022-10-15 16:06:20 -07:00
|
|
|
The site (https://example.com) is down. {MD034}
|
2022-11-13 21:39:14 -08:00
|
|
|
|
|
|
|
<!-- markdownlint-disable line-length no-inline-html -->
|
|
|
|
|
|
|
|
Some documents use <a href="https://example.com">to link</a>.
|
|
|
|
|
|
|
|
Or <a href="https://example.com/info.htm">to link</a>.
|
|
|
|
|
|
|
|
Or repeat the URL <a href="https://example.com">https://example.com</a>.
|
|
|
|
|
|
|
|
Or <a href="https://example.com/info.htm">https://example.com/info.htm</a>.
|
|
|
|
|
|
|
|
This is allowed to avoid embedding angle brackets in HTML <a href="https://example.com">Text https://example.com</a>.
|
|
|
|
|
|
|
|
As is <a href="https://example.com/info.htm">https://example.com/info.htm text</a>.
|
|
|
|
|
|
|
|
<br> Another violation: https://example.com. {MD034} <br>
|
|
|
|
|
|
|
|
<br/> Another violation: https://example.com. {MD034} <br/>
|
2022-12-06 22:14:40 -08:00
|
|
|
|
|
|
|
This is not a bare [link]( https://example.com ).
|
|
|
|
|
2022-12-15 14:27:07 -08:00
|
|
|
Nor is [link](https://example.com/path-with(parens)).
|
|
|
|
|
|
|
|
Or <https://example.com/path-with(parens)>.
|
|
|
|
|
|
|
|
URLs in HTML attributes are not bare:
|
2022-12-06 22:14:40 -08:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2022-12-15 14:27:07 -08:00
|
|
|
URLs surrounded by HTML tags are not bare:
|
|
|
|
|
|
|
|
Not <code>https://example.com</code> bare.
|
|
|
|
|
|
|
|
Not <pre>https://example.com</pre> bare.
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Not bare due to being in an HTML block:
|
|
|
|
https://example.com
|
|
|
|
<code>https://example.com</code>
|
|
|
|
<pre>https://example.com</pre>
|
|
|
|
</p>
|
|
|
|
|
2022-12-06 22:14:40 -08:00
|
|
|
URLs in link and image text are not bare:
|
|
|
|
|
|
|
|
Text [link to https://example.com site](https://example.com) text.
|
|
|
|
|
|
|
|
Image  text.
|
2022-12-15 14:27:07 -08:00
|
|
|
|
|
|
|
URLs may end with a dash: https://example.com#heading- {MD034}
|
|
|
|
|
|
|
|
... when explicit: <https://example.com#heading->
|
|
|
|
|
|
|
|
... when embedded: <code>https://example.com#heading-</code>
|
2023-02-05 16:58:06 -08:00
|
|
|
|
|
|
|
Links with spaces inside angle brackets are okay: [blue jay](<https://en.wikipedia.org/wiki/Blue jay>)
|
|
|
|
|
|
|
|
Email addresses are treated similarly: user@example.com {MD034}
|
|
|
|
|
|
|
|
Angle brackets work the same for email: <user@example.com>
|
2023-02-06 21:09:58 -08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
[is-a-valid]: https://example.com
|
|
|
|
|
|
|
|
Links bind to the innermost [link that [is-a-valid] link](https://example.com) {MD034}
|
|
|
|
|
|
|
|
But not if the [link [is-not-a-valid] link](https://example.com) {MD034}
|
|
|
|
HOWEVER this scenario could have an invalid shortcut and IS reported
|
|
|
|
|
|
|
|
Escaping both inner square brackets avoids the unwanted report:
|
|
|
|
[link \[is-not-a-valid\] link](https://example.com)
|