A remark-lint rule to warn when Markdown headings are indented. Current stable version is 5.0.1, released as part of the remark-lint monorepo. This package is ESM-only (Node.js 16+). It checks that headings have no leading whitespace, enforcing consistent heading style. Unlike other lint rules, it has no options and is recommended to avoid uncommon indentation that can conflict with indented code blocks. The remark-lint ecosystem provides modular, pluggable linting for Markdown files.
npm install remark-lint-no-heading-indentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set up a unified pipeline with remark-parse, remark-lint, the no-heading-indent rule, and remark-stringify, then process a markdown file and output lint messages.
Use import syntax or dynamic import(). For Node.js <16, you cannot use this package; upgrade to Node.js 16+.
Ensure unified and remark-lint are installed: npm install unified remark-lint remark-lint-no-heading-indent.
Update import to current ESM style; old CommonJS usage will break.
Simply use .use(remarkLintNoHeadingIndent) without arguments.
Change to import statement: import remarkLintNoHeadingIndent from 'remark-lint-no-heading-indent'
Install unified: npm install unified
Use default import: import remarkLintNoHeadingIndent from 'remark-lint-no-heading-indent'