{"id":26267,"library":"remark-lint-no-paragraph-content-indent","title":"remark-lint-no-paragraph-content-indent","description":"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.","status":"active","version":"5.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","content","indent","lint","paragraph","remark","remark-lint","remark-lint-rule","rule","typescript"],"install":[{"cmd":"npm install remark-lint-no-paragraph-content-indent","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-no-paragraph-content-indent","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-no-paragraph-content-indent","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required to use the unified processor with remark-lint plugins","package":"unified","optional":false},{"reason":"Required to register the lint rule","package":"remark-lint","optional":false}],"imports":[{"note":"Package is ESM-only, no default export as a named export; import directly from the package.","wrong":"const remarkLintNoParagraphContentIndent = require('remark-lint-no-paragraph-content-indent')","symbol":"remarkLintNoParagraphContentIndent","correct":"import remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent'"}],"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent'\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(remarkLintNoParagraphContentIndent)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Shows how to use the rule with unified API, including required imports and processing a markdown file."},"warnings":[{"fix":"Use import syntax. If using CommonJS, either stay on version 4.x or use dynamic import.","message":"Package is ESM-only starting from version 5.0.0. require() will not work.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Test your markdown comprehensively; the rule only applies to indentation of continuation lines in the same paragraph.","message":"This rule does not fire on blocks inside list items or blockquotes because those indents are meaningful.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Always .use(remarkLint) before this rule. Not an issue in recent versions but good practice.","message":"Some older versions relied on remark-lint being loaded first. This is still required.","severity":"deprecated","affected_versions":"<10.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install remark-lint-no-paragraph-content-indent and ensure Node.js >= 16","cause":"Package not installed or old Node.js without ESM support","error":"Error: Cannot find module 'remark-lint-no-paragraph-content-indent'"},{"fix":"Use: import remarkLintNoParagraphContentIndent from 'remark-lint-no-paragraph-content-indent'","cause":"Using default import incorrectly (e.g., importing wrong symbol)","error":"TypeError: remarkLintNoParagraphContentIndent is not a function"},{"fix":"Remove the leading spaces from the continuation line of the paragraph.","cause":"Paragraph continuation line indented by one or more spaces","error":"Unexpected '1' extra space before content line, remove '1' space"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}