{"id":26194,"library":"remark-lint-blockquote-indentation","title":"remark-lint-blockquote-indentation","description":"A remark-lint rule that warns when block quotes are indented too much or too little, checking the `>` marker and the spaces before content. The `remark-lint` ecosystem provides over 100 rules for linting Markdown. Current stable version 4.0.1 (ESM-only, requires Node.js 16+). Part of the unified/remark ecosystem, maintained by the remark team. Key differentiator: deeply integrated with remark-lint presets like `remark-preset-lint-consistent` and `remark-preset-lint-markdown-style-guide`.","status":"active","version":"4.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","blockquote","indent","indentation","lint","remark","remark-lint","remark-lint-rule","rule","typescript"],"install":[{"cmd":"npm install remark-lint-blockquote-indentation","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-blockquote-indentation","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-blockquote-indentation","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core remark-lint infrastructure for creating lint rules","package":"unified-lint-rule","optional":true},{"reason":"Required to actually apply lint rules via remark","package":"remark-lint","optional":true}],"imports":[{"note":"ESM-only since v4; default export is the plugin function.","wrong":"const remarkLintBlockquoteIndentation = require('remark-lint-blockquote-indentation')","symbol":"remarkLintBlockquoteIndentation","correct":"import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'"},{"note":"Options is a TypeScript type only, not a runtime value. Use `import type`.","wrong":"import { Options } from 'remark-lint-blockquote-indentation'","symbol":"Options","correct":"import type { Options } from 'remark-lint-blockquote-indentation'"}],"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintBlockquoteIndentation, 2) // enforce 2 spaces after `>`\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Shows how to apply the rule with a specific indentation option (2 spaces) and report lint warnings."},"warnings":[{"fix":"Use `import` syntax instead of `require()`, or switch to v3.x if you need CommonJS.","message":"Package is ESM-only since v4. Required Node.js 16+.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Ensure you pass either a number or the string 'consistent' (not a boolean or other string).","message":"Options type is `number | 'consistent'`. Setting a number like `2` means exactly that many spaces after `>`. `'consistent'` detects the first blockquote's indent and warns on deviations.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Understand that the rule only validates spacing after the final `>` marker, not the nesting depth.","message":"The rule does **not** check the number of `>` markers themselves (nested blockquotes). It only checks whitespace after the *last* `>` marker.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consult preset docs for recommended options; this rule's preset options are noted in the README.","message":"The `remark-lint` preset packages may be deprecated or have different default options. Check preset documentation.","severity":"deprecated","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install remark-lint-blockquote-indentation` and use `import` syntax (Node 16+).","cause":"Package not installed or ESM-only file required with `require()`.","error":"Cannot find module 'remark-lint-blockquote-indentation'"},{"fix":"Use default import: `import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'`.","cause":"Passing the import incorrectly (e.g., destructuring default export).","error":"Error: [object Object] is not a plugin"},{"fix":"Ensure you call `.use(remarkLint)` before `.use(remarkLintBlockquoteIndentation)` in the unified pipeline.","cause":"Using the plugin without `remark-lint` being set up first.","error":"TypeError: plugin is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}