A remark-lint rule that warns when a horizontal rule (thematic break) appears immediately after a heading. This package is version 1.0.0, released as a stable linting rule for the remark ecosystem. It helps enforce stylistic consistency by discouraging the use of `---` as a heading border. Unlike general heading styles, this rule specifically targets thematic breaks placed after headings. The rule is part of the remark-lint plugin collection and integrates seamlessly with remark's CLI, API, and configuration files.
npm install remark-lint-no-hr-after-headingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use remark-lint-no-hr-after-heading with remark, including lint and reporter.
Install the correct package: npm install remark-lint-no-hr-after-heading
Add remark-lint as a dependency and use it before this rule: .use(lint).use(noHrAfterHeading)
Use require() or if using ESM, use createRequire from 'module'.
npm install remark-lint-no-hr-after-heading
Ensure you call .use(lint) before .use(noHrAfterHeading)
Add remark-lint to your plugins list and use it before this rule