A remark-lint rule that warns when lines in Markdown files exceed a configurable maximum length. Version 4.1.1 is the current stable release, part of the remark-lint monorepo. It is ESM-only, requires Node.js 16+, and ships TypeScript types. Unlike general linters, it respects Markdown node types (e.g., ignores code blocks, tables, and long URLs/links that cannot be wrapped). Supports a custom stringLength function for accurate character width measurement. Active development, updated regularly with other remark-lint packages.
npm install remark-lint-maximum-line-lengthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates linting a Markdown file with a maximum line length of 80, using the unified pipeline.
Use import statement instead of require(). If you must use CommonJS, use dynamic import() or stay on v2.x.
Explicitly set size option if you expect 80 characters.
Use the 'size' option instead of 'maxLineLength'.
No fix; this is by design. Review the documentation to understand which lines are checked.
Use the correct kebab-case name in CLI commands.
Run 'npm install remark-lint-maximum-line-length' and ensure you use the default import.
Change to import statement or use dynamic import().
Use 'import remarkLintMaximumLineLength from ...' (without braces).
Ensure you use remarkParse and remarkLint before the rule.