Registry / testing / remark-lint-no-blockquote-without-marker

remark-lint-no-blockquote-without-marker

JSON →
library6.0.1jsnpmunverified

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.

npm install remark-lint-no-blockquote-without-marker
INSTALL
IMPORT
SIG · REMARK-LINT-NO-BLO
R
remark-lint-no-blockquote-without-marker
testingjavascriptv6.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

remarkLintNoBlockquoteWithoutMarker
import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'
const remarkLintNoBlockquoteWithoutMarker = require('remark-lint-no-blockquote-without-marker')
ESM-only since v6; CommonJS require() fails. The package exports only a default export, no named exports.
remarkLint
import remarkLint from 'remark-lint'
import { remarkLint } from 'remark-lint'
remark-lint also uses a default export, not a named one.
unified
import { unified } from 'unified'
import unified from 'unified'
unified v11+ exports a named export for factory function; default export is deprecated.

Lints a Markdown string with remark-lint and this rule, reporting a warning for a lazy blockquote line.

import { unified } from 'unified'; import remarkParse from 'remark-parse'; import remarkStringify from 'remark-stringify'; import remarkLint from 'remark-lint'; import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'; import { reporter } from 'vfile-reporter'; const file = await unified() .use(remarkParse) .use(remarkLint) .use(remarkLintNoBlockquoteWithoutMarker) .use(remarkStringify) .process('> Mercury,\nVenus,\n> and Earth.'); console.error(reporter(file)); // Shows warning for line 2
Debug
Known issues
breakingESM-only: This package no longer supports CommonJS (require()).
fix
Use ES import syntax: `import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'`
affects: >=6.0.0
deprecatedThe old `use(remarkLintNoBlockquoteWithoutMarker, ...)` with options is deprecated; this rule has no options.
fix
Remove any options object from the `.use()` call.
affects: >=5.0.0
gotchaThe warning message uses unexpected format with backticks: 'Unexpected `{}` block quote markers before paragraph line' — the braces are literal.
fix
String interpolation in lint message may confuse parsers; no fix needed, just be aware.
affects: >=6.0.0
gotchaThis rule only works with `remark-parse`; using other parsers (e.g., `remark-gfm`) may not produce the same AST.
fix
Ensure `remark-parse` is included in the pipeline before this rule.
affects: >=4.0.0
Errors
Common errors & fixes
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.
Using CommonJS require() on an ESM-only package (v6+).
fix
Switch to ES import syntax: `import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'`
TypeError: remarkLintNoBlockquoteWithoutMarker is not a function
Using `require('remark-lint-no-blockquote-without-marker')` which returns a module with default export as `{default: ...}` in some contexts.
fix
Use dynamic import: `const remarkLintNoBlockquoteWithoutMarker = (await import('remark-lint-no-blockquote-without-marker')).default;` or switch to static ES imports.
Upgrade
Version history
6.0.1latest on npm
Audit
Dependencies
unifiedrequiredCore unified ecosystem; remark-lint rules are plugins for unified
remark-lintrequiredProvides the lint infrastructure and message reporting
remark-parseoptionalRequired to parse Markdown into an AST before linting
Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
2
Resources
remark-lint-no-blockquote-without-marker — npm install remark-lint-no-blockquote-without-marker · libregistry