A remark-lint rule to enforce a minimum and maximum number of words in headings in Markdown files. Version 1.0.0 is the current stable release, based on the unified ecosystem. It allows configuration of min and max word counts, with defaults of 2 and 10 respectively. Unlike generic linters, this rule is specific to heading length and integrates seamlessly with remark-lint presets.
npm install remark-lint-heading-lengthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures remark-lint with the heading-length rule, then processes a Markdown string to show linting output.
Use array format: [severity, options] or just severity string.
Configure min to 1 if single-word headings are acceptable.
Use eslint-plugin-markdown or unified-based linters instead.
Run: npm install remark-lint-heading-length
Use default import: import remarkLintHeadingLength from 'remark-lint-heading-length'
Use array format: ['error', { min: 2, max: 10 }]