A remark-lint rule that warns when headings end in illegal characters such as punctuation marks. The current stable version is 4.0.1. It is part of the remark-lint ecosystem and is included in presets like `remark-preset-lint-markdown-style-guide`. It supports configurable options via a RegExp or string, allowing customization of which characters are flagged. This package is ESM-only and ships TypeScript types. It is actively maintained as part of the remark-lint monorepo.
npm install remark-lint-no-heading-punctuationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates usage of the remark-lint-no-heading-punctuation rule in a unified pipeline, processing a markdown file and reporting lint messages.
Use `import` syntax instead of `require()`. Ensure your project is ESM or use dynamic import().
Pass a RegExp or an object with `source` property: `{ source: '[,:;]' }`.Use RegExp directly or escape regex special characters in the string.
Ensure `.use(remarkLint)` is called before `.use(remarkLintNoHeadingPunctuation)`.
Use Node 16 or later, or use dynamic imports in older Node with `--experimental-modules`.
Use `import remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'` instead of `require(...)`.
Remove the trailing punctuation from the heading, or configure the rule to allow specific characters.
Use `import remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'` (default import).
No dependency data recorded yet.