{"library":"remark-lint-no-heading-punctuation","title":"remark-lint-no-heading-punctuation","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-heading-punctuation"],"cli":null},"imports":["import remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'","import remarkLint from 'remark-lint'\nimport remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'\nunified().use(remarkLint).use(remarkLintNoHeadingPunctuation)","import type { RemarkLintNoHeadingPunctuationOptions } from 'remark-lint-no-heading-punctuation'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport remarkLint from 'remark-lint'\nimport remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoHeadingPunctuation)\n  .use(remarkStringify)\n  .process('# Mercury:')\n\nconsole.error(reporter(file))\n// Output: 1:1-1:10: Unexpected character `:` at end of heading, remove it","lang":"typescript","description":"Demonstrates usage of the remark-lint-no-heading-punctuation rule in a unified pipeline, processing a markdown file and reporting lint messages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}