2022-10-30 15:13:19 -07:00
|
|
|
# `MD018` - No space after hash on atx style heading
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2023-11-09 20:05:30 -08:00
|
|
|
Tags: `atx`, `headings`, `spaces`
|
2022-10-29 23:21:45 -07:00
|
|
|
|
2022-10-30 15:13:19 -07:00
|
|
|
Aliases: `no-missing-space-atx`
|
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 when spaces are missing after 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: Violations of this rule can lead to improperly rendered content.
|