{"library":"remark-lint-no-consecutive-blank-lines","title":"remark-lint-no-consecutive-blank-lines","description":"A remark-lint rule to warn when multiple blank lines (more than one consecutive blank line) are used in Markdown documents. Version 5.0.1 is the current stable release. It is part of the remark-lint ecosystem and is included in the remark-preset-lint-markdown-style-guide preset. This package is ESM-only (requires Node.js 16+) and ships TypeScript types. Unlike formatters, this tool only lints and does not automatically fix consecutive blank lines.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-consecutive-blank-lines"],"cli":null},"imports":["import remarkLintNoConsecutiveBlankLines from 'remark-lint-no-consecutive-blank-lines'","import remarkLintNoConsecutiveBlankLines from 'remark-lint-no-consecutive-blank-lines'","// No explicit type import needed; types are shiped with the package"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint';\nimport remarkLintNoConsecutiveBlankLines from 'remark-lint-no-consecutive-blank-lines';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport { unified } from 'unified';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoConsecutiveBlankLines)\n  .use(remarkStringify)\n  .process('# Hello\\n\\n\\nWorld'); // Three blank lines after heading\n\nconsole.error(reporter(file));\n// Output:\n//   4:1: Unexpected `2` blank lines before node, expected up to `1` blank line, remove `1` blank line","lang":"typescript","description":"Shows how to import and use the remark-lint rule to detect too many consecutive blank lines.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}