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
AI acknowledgment
Additional comments
No response
Disclosure: I'm a participant of open source contribution program OSSCA
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####### Installationis parsed as a regular paragraph rather than a heading.What type of rule is this?
Warns about a potential problem
Example code
Prior Art
remark-lint already provides a rule with the same purpose:
remark-lint-no-heading-like-paragraphThis rule also warns about paragraphs that start with seven or more hash characters and appear to be intended as headings.
Participation
AI acknowledgment
Additional comments
No response
Disclosure: I'm a participant of open source contribution program OSSCA