Registry / testing / remark-lint-no-paragraph-content-indent

remark-lint-no-paragraph-content-indent

JSON →
library5.0.1jsnpmunverified

remark-lint rule to warn when text in paragraphs is indented. Current stable version: 5.0.1 (ESM only, Node.js 16+). Part of the remark-lint monorepo; release cadence follows the monorepo (patch releases for all packages). Key differentiator: catches indentation in paragraph content which has no effect on rendering, helping maintain consistent markdown style. This rule has no options and is not included in any preset, so it must be explicitly added.

npm install remark-lint-no-paragraph-content-indent
INSTALL
IMPORT
SIG · REMARK-LINT-NO-PAR
R
remark-lint-no-paragraph-content-indent
testingjavascriptv5.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.

remarkLintNoParagraphContentIndent
import remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent'
const remarkLintNoParagraphContentIndent = require('remark-lint-no-paragraph-content-indent')
Package is ESM-only, no default export as a named export; import directly from the package.

Shows how to use the rule with unified API, including required imports and processing a markdown file.

import remarkLint from 'remark-lint' import remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent' import remarkParse from 'remark-parse' import remarkStringify from 'remark-stringify' import {read} from 'to-vfile' import {unified} from 'unified' import {reporter} from 'vfile-reporter' const file = await read('example.md') await unified() .use(remarkParse) .use(remarkLint) .use(remarkLintNoParagraphContentIndent) .use(remarkStringify) .process(file) console.error(reporter(file))
Debug
Known issues
breakingPackage is ESM-only starting from version 5.0.0. require() will not work.
fix
Use import syntax. If using CommonJS, either stay on version 4.x or use dynamic import.
affects: >=5.0.0
gotchaThis rule does not fire on blocks inside list items or blockquotes because those indents are meaningful.
fix
Test your markdown comprehensively; the rule only applies to indentation of continuation lines in the same paragraph.
affects: >=1.0.0
deprecatedSome older versions relied on remark-lint being loaded first. This is still required.
fix
Always .use(remarkLint) before this rule. Not an issue in recent versions but good practice.
affects: <10.0.0
Errors
Common errors & fixes
Error: Cannot find module 'remark-lint-no-paragraph-content-indent'
Package not installed or old Node.js without ESM support
fix
npm install remark-lint-no-paragraph-content-indent and ensure Node.js >= 16
TypeError: remarkLintNoParagraphContentIndent is not a function
Using default import incorrectly (e.g., importing wrong symbol)
fix
Use: import remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent'
Unexpected '1' extra space before content line, remove '1' space
Paragraph continuation line indented by one or more spaces
fix
Remove the leading spaces from the continuation line of the paragraph.
Upgrade
Version history
5.0.1latest on npm
Audit
Dependencies
unifiedrequiredRequired to use the unified processor with remark-lint plugins
remark-lintrequiredRequired to register the lint rule
Agent activity
2 hits · last 30 days
node
2
Resources
remark-lint-no-paragraph-content-indent — npm install remark-lint-no-paragraph-content-indent · libregistry