Update documentation for MD034/no-bare-urls to recommend percent-encoding (closes #1212).

This commit is contained in:
David Anson 2024-05-19 22:34:17 -07:00
parent 38cbbc9669
commit 90b572f292
3 changed files with 15 additions and 0 deletions

View file

@ -11,6 +11,11 @@ To fix this, add angle brackets around the URL or email address:
For more info, visit <https://www.example.com/> or email <user@example.com>.
```
If a URL or email address contains non-ASCII characters, it may be not be
handled as intended even when angle brackets are present. In such cases,
[percent-encoding](https://en.m.wikipedia.org/wiki/Percent-encoding) can be used
to comply with the required syntax for URL and email.
Note: To include a bare URL or email without it being converted into a link,
wrap it in a code span: