Skip to content

New Rule: no-heading-like-paragraph #700

Description

@Gaic4o

Rule details

This rule should report when the first line of a paragraph starts with seven or more hash characters (#) followed by a space or tab. CommonMark ATX headings support one to six hash characters. Therefore, content such as ####### Installation is parsed as a regular paragraph rather than a heading.

What type of rule is this?

Warns about a potential problem

Example code

// The following code should trigger a warning
####### Installation

######## Configuration

Prior Art

remark-lint already provides a rule with the same purpose:

remark-lint-no-heading-like-paragraph

This rule also warns about paragraphs that start with seven or more hash characters and appear to be intended as headings.

Participation

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

AI acknowledgment

  • I did not use AI to generate this issue report.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
Evaluating

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions