remark-lint rule that detects non-breaking spaces (U+00A0) inserted accidentally after heading markers (e.g., '# ' instead of '# '), which causes headings to be parsed as plain paragraphs. Version 1.0.0 (latest) is stable and targets the remark-lint plugin ecosystem. No known release cadence. Differentiates from other lint rules by focusing on a specific, localization-driven typo that is common on keyboard layouts like Swiss German where '#' is typed via Alt+3 and Alt+Space produces a non-breaking space. Integrates as a remark-lint plugin.
npm install remark-lint-heading-whitespaceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the rule with remark, processing a heading containing a non-breaking space and outputting lint warnings.
Use dynamic import() or set 'type':'module' in package.json.
Ensure both remark-lint and this rule are included in the remark pipeline.
Use import() or set 'type':'module' in package.json.
Use `import remarkLintHeadingWhitespace from 'remark-lint-heading-whitespace'` (default import).