{"library":"remark-lint-no-duplicate-headings","title":"remark-lint-no-duplicate-headings","description":"remark-lint rule to warn when headings with equivalent text appear in a Markdown document. Current stable version is 4.0.1. Part of the remark-lint ecosystem, this plugin is ESM-only, requires Node.js 16+, and is included in the `remark-preset-lint-markdown-style-guide` preset. It helps screen reader users and prevents fragile automatic heading IDs. Unlike custom checks, it integrates directly with unified pipelines and CLI.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-duplicate-headings"],"cli":{"name":"remark","version":null}},"imports":["import remarkLintNoDuplicateHeadings from 'remark-lint-no-duplicate-headings'","import remarkLintNoDuplicateHeadings from 'remark-lint-no-duplicate-headings'","No type imports needed; types are shipped with package."],"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 remarkLintNoDuplicateHeadings from 'remark-lint-no-duplicate-headings'\nimport { read } from 'to-vfile'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoDuplicateHeadings)\n  .use(remarkStringify)\n  .process(await read('example.md'))\n\nconsole.error(reporter(file))","lang":"typescript","description":"Runs linting on example.md, reporting duplicate headings. ESM-only, Node 16+.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}