2022-10-30 15:13:19 -07:00
|
|
|
# `MD039` - Spaces inside link text
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Tags: `links`, `whitespace`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Aliases: `no-space-in-links`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-12-16 13:53:03 -08:00
|
|
|
Fixable: Some violations can be fixed by tooling
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
This rule is triggered on links that have spaces surrounding the link text:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
[ a link ](https://www.example.com/)
|
|
|
|
```
|
|
|
|
|
|
|
|
To fix this, remove the spaces surrounding the link text:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
[a link](https://www.example.com/)
|
|
|
|
```
|
|
|
|
|
|
|
|
Rationale: Consistent formatting makes it easier to understand a document.
|