2023-02-05 16:58:06 -08:00
|
|
|
This rule is triggered whenever a URL or email address appears without
|
|
|
|
surrounding angle brackets:
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
```markdown
|
2023-02-05 16:58:06 -08:00
|
|
|
For more info, visit https://www.example.com/ or email user@example.com.
|
2022-10-29 23:21:45 -07:00
|
|
|
```
|
|
|
|
|
2023-02-05 16:58:06 -08:00
|
|
|
To fix this, add angle brackets around the URL or email address:
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
```markdown
|
2023-02-05 16:58:06 -08:00
|
|
|
For more info, visit <https://www.example.com/> or email <user@example.com>.
|
2022-10-29 23:21:45 -07:00
|
|
|
```
|
|
|
|
|
2023-02-05 16:58:06 -08:00
|
|
|
Note: To include a bare URL or email without it being converted into a link,
|
|
|
|
wrap it in a code span:
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
```markdown
|
2023-02-05 16:58:06 -08:00
|
|
|
Not a clickable link: `https://www.example.com`
|
2022-10-29 23:21:45 -07:00
|
|
|
```
|
|
|
|
|
2023-02-05 16:58:06 -08:00
|
|
|
Note: The following scenario does not trigger this rule because it could be a
|
|
|
|
valid shortcut link:
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
```markdown
|
|
|
|
[https://www.example.com]
|
|
|
|
```
|
|
|
|
|
2023-02-05 16:58:06 -08:00
|
|
|
Rationale: Without angle brackets, a bare URL or email isn't converted into a
|
|
|
|
link by some Markdown parsers.
|