{"id":26240,"library":"remark-lint-no-blockquote-without-marker","title":"remark-lint-no-blockquote-without-marker","description":"A remark-lint rule that warns when blockquote continuation lines lack a `>` marker (lazy lines). Current stable version is 6.0.1, released as part of the remark-lint monorepo. It enforces consistent blockquote style by flagging any line inside a blockquote that does not start with `>`. The rule is included in the `remark-preset-lint-markdown-style-guide` and `remark-preset-lint-recommended` presets. Unlike other lint rules that only check the first line, this catches all lazy lines, making blockquotes unambiguous and easier to read. Zero configuration options — just plug it in. Supports ESM only, with TypeScript types included.","status":"active","version":"6.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","blockquote","caret","lint","marker","remark","remark-lint","remark-lint-rule","rule","typescript"],"install":[{"cmd":"npm install remark-lint-no-blockquote-without-marker","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-no-blockquote-without-marker","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-no-blockquote-without-marker","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core unified ecosystem; remark-lint rules are plugins for unified","package":"unified","optional":false},{"reason":"Provides the lint infrastructure and message reporting","package":"remark-lint","optional":false},{"reason":"Required to parse Markdown into an AST before linting","package":"remark-parse","optional":true}],"imports":[{"note":"ESM-only since v6; CommonJS require() fails. The package exports only a default export, no named exports.","wrong":"const remarkLintNoBlockquoteWithoutMarker = require('remark-lint-no-blockquote-without-marker')","symbol":"remarkLintNoBlockquoteWithoutMarker","correct":"import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'"},{"note":"remark-lint also uses a default export, not a named one.","wrong":"import { remarkLint } from 'remark-lint'","symbol":"remarkLint","correct":"import remarkLint from 'remark-lint'"},{"note":"unified v11+ exports a named export for factory function; default export is deprecated.","wrong":"import unified from 'unified'","symbol":"unified","correct":"import { unified } from 'unified'"}],"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoBlockquoteWithoutMarker)\n  .use(remarkStringify)\n  .process('> Mercury,\\nVenus,\\n> and Earth.');\n\nconsole.error(reporter(file)); // Shows warning for line 2","lang":"typescript","description":"Lints a Markdown string with remark-lint and this rule, reporting a warning for a lazy blockquote line."},"warnings":[{"fix":"Use ES import syntax: `import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'`","message":"ESM-only: This package no longer supports CommonJS (require()).","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Remove any options object from the `.use()` call.","message":"The old `use(remarkLintNoBlockquoteWithoutMarker, ...)` with options is deprecated; this rule has no options.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"String interpolation in lint message may confuse parsers; no fix needed, just be aware.","message":"The warning message uses unexpected format with backticks: 'Unexpected `{}` block quote markers before paragraph line' — the braces are literal.","severity":"gotcha","affected_versions":">=6.0.0"},{"fix":"Ensure `remark-parse` is included in the pipeline before this rule.","message":"This rule only works with `remark-parse`; using other parsers (e.g., `remark-gfm`) may not produce the same AST.","severity":"gotcha","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":"Switch to ES import syntax: `import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'`","cause":"Using CommonJS require() on an ESM-only package (v6+).","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/remark-lint-no-blockquote-without-marker/index.js from /path/to/your-file.js not supported."},{"fix":"Use dynamic import: `const remarkLintNoBlockquoteWithoutMarker = (await import('remark-lint-no-blockquote-without-marker')).default;` or switch to static ES imports.","cause":"Using `require('remark-lint-no-blockquote-without-marker')` which returns a module with default export as `{default: ...}` in some contexts.","error":"TypeError: remarkLintNoBlockquoteWithoutMarker is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}