{"library":"remark-lint-hard-break-spaces","title":"remark-lint-hard-break-spaces","description":"A remark-lint rule to warn when too many spaces are used to create a hard break (line break) in Markdown. Current stable version: 4.1.1 (ESM-only, TypeScript types included). Release cadence: follows remark-lint monorepo releases. Key differentiators: as part of the official remark-lint ecosystem, it integrates seamlessly with unified/remark and supports presets like remark-preset-lint-recommended. It enforces consistent hard break style (exactly 2 trailing spaces) and can optionally disallow space-based hard breaks entirely in favor of backslash escapes.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-hard-break-spaces"],"cli":null},"imports":["import remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces'","import type { Options } from 'remark-lint-hard-break-spaces'","import remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\nimport { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintHardBreakSpaces, { allowSpaces: false })\n  .use(remarkStringify)\n  .process(await read('example.md'));\n\nconsole.error(reporter(file));\n","lang":"typescript","description":"Lints a Markdown file using remark, with the hard-break-spaces rule configured to disallow trailing space hard breaks (enforce backslash).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}