no-missing-space-atx
What it does
Section titled “What it does”Reports a paragraph that starts with one to six # and no space after them (#Heading).
Why it matters
Section titled “Why it matters”To a reader this is a heading, but CommonMark needs a space after the #, so it is plain text with a # in front. The heading is missing from the outline and from the table of contents.
To fix, add a space: # Heading. A deliberate hash tag at the start of a line can be escaped with \#.
Example
Section titled “Example”#Heading
## Fine
###Also missing
Text with #hash inside.Configuration
Section titled “Configuration”markdown: lint: rules: no-missing-space-atx: warn # off, warn (default), errorEnabled by the presets: markdown/markdownlint.
Suppress one line with sudsy-disable-next-line no-missing-space-atx in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| markdownlint | MD018 |
full |