Skip to content

Rule Change: Add check for missing spaces before closing hashes in ATX headings #409

@xbinaryx

Description

@xbinaryx

What rule do you want to change?

no-missing-atx-heading-space

What change do you want to make?

Generate more warnings

How do you think the change should be implemented?

A new default behavior

Example code

#Heading 1#

What does the rule currently do for this code?

Currently, the rule only reports an error for #Heading (missing space after opening hash) but ignores 1# (missing space before closing hash).

What will the rule do after it's changed?

After the change, the rule will report errors for missing space before closing hash

Participation

  • I am willing to submit a pull request to implement this change.

Additional comments

This behavior aligns with Markdownlint's implementation (rule MD018), which also checks for spaces both before and after hash sequences in ATX headings.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions