{"library":"remark-lint-heading-increment","title":"remark-lint-heading-increment","description":"A remark-lint rule that warns when heading levels increase by more than one level at a time (e.g., from h1 to h3). This helps enforce accessible heading hierarchies as recommended by HTML accessibility guidelines, where headings should increment by one level. Part of the remark-lint ecosystem, current stable version is 4.0.1 (ESM-only since v2, ships TypeScript types). Released as part of the remark-lint monorepo with regular updates. No options needed. Integrates with remark-lint presets like remark-preset-lint-markdown-style-guide.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-heading-increment"],"cli":null},"imports":["import remarkLintHeadingIncrement from 'remark-lint-heading-increment'","import remarkLint from 'remark-lint'","import { unified } from 'unified'"],"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 remarkLintHeadingIncrement from 'remark-lint-heading-increment'\nimport { read } from 'to-vfile'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintHeadingIncrement)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Shows how to use remark-lint-heading-increment to lint a Markdown file for heading level jumps, outputting any warnings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}