2022-10-30 15:13:19 -07:00
|
|
|
# `MD019` - Multiple spaces after hash on atx style heading
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Tags: `atx`, `headers`, `headings`, `spaces`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Aliases: `no-multiple-space-atx`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
|
|
|
Fixable: Most violations can be fixed by tooling
|
|
|
|
|
|
|
|
This rule is triggered when more than one space is used to separate the
|
|
|
|
heading text from the hash characters in an atx style heading:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
# Heading 1
|
|
|
|
|
|
|
|
## Heading 2
|
|
|
|
```
|
|
|
|
|
|
|
|
To fix this, separate the heading text from the hash character by a single
|
|
|
|
space:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
# Heading 1
|
|
|
|
|
|
|
|
## Heading 2
|
|
|
|
```
|
|
|
|
|
|
|
|
Rationale: Extra space has no purpose and does not affect the rendering of
|
|
|
|
content.
|