A remark-lint rule that warns when there is extra whitespace between the opening hashes and the content of headings (ATX headings) in Markdown. It enforces a single space after the `#` markers and before the closing `#`s. This package is part of the remark-lint ecosystem, version 5.0.1, ESM-only, ships TypeScript type definitions. It has no dependencies and is recommended for ensuring consistent heading formatting. The rule is included in the `remark-preset-lint-recommended` preset.
npm install remark-lint-no-heading-content-indentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the lint rule with unified, parse a Markdown string with an extra space after the hash, and report the linting error.
Replace `const x = require('remark-lint-no-heading-content-indent')` with `import x from 'remark-lint-no-heading-content-indent'`Use ATX headings if you want consistent indentation linting. Setext headings are ignored by design.
Ensure headings are not indented with extra spaces. The rule expects exactly `# SPACE CONTENT` (or `# SPACE CONTENT SPACE #` for closed ATX).
Upgrade to v5.0.1 to ensure compatibility with unified@11 and remark@15.
Edit the heading to have exactly one space after the opening `#`(s) and exactly one space before any closing `#`(s). Example: `# Heading` not `# Heading`.
Remove extra spaces before the closing `#`(s). Example: `## Heading ##` not `## Heading ##`.
No dependency data recorded yet.