{"library":"remark-lint-maximum-line-length","title":"remark-lint-maximum-line-length","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-maximum-line-length"],"cli":{"name":"remark","version":null}},"imports":["import remarkLintMaximumLineLength from 'remark-lint-maximum-line-length'","import type { Options } from 'remark-lint-maximum-line-length'","remark --use remark-lint-maximum-line-length"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintMaximumLineLength from 'remark-lint-maximum-line-length';\nimport { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await read('example.md');\n\nconst result = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMaximumLineLength, { size: 80 })\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(result));","lang":"typescript","description":"Demonstrates linting a Markdown file with a maximum line length of 80, using the unified pipeline.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}