Skip to content

MD019 - no-multiple-space-atx

Description

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.

Fixable: Yes

Rationale

Extra space has no purpose and does not affect the rendering of content. Using a single space keeps the source clean and consistent.

Examples

Invalid

#  Heading 1

##  Heading 2

###  Heading 3

Headings with multiple spaces after hash.

Valid

# Heading 1

## Heading 2

### Heading 3

Headings with single space after hash.