Skip to content

no-missing-space-atx

Markdowncorrectnessno fixdefault: warnmarkdown/markdownlint

Reports a paragraph that starts with one to six # and no space after them (#Heading).

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 \#.

Reported
#Heading
## Fine
###Also missing
Text with #hash inside.
markdown:
lint:
rules:
no-missing-space-atx: warn # off, warn (default), error

Enabled 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.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
markdownlint MD018 full