Opinionated Markdown formatter and linter, written in Rust. Inspired by ruff (Python) and gofmt (Go), it enforces a single canonical style with zero configuration. Version 0.3.17, released as an npm package with bundled platform-specific binaries. Active development; key differentiators: blazing fast (Rust), requires Node.js >=20, respects .gitignore, no config needed for default formatting, ESM-only wrapper. Unlike markdownlint (JS), it is opinionated and not rule-configurable. Aims to eliminate style debates and produce consistent diffs, particularly useful for AI-generated Markdown.
npm install markdownlint-rsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize project, install the package, create a sample Markdown file, format it, check it, output JSON, and apply auto-fixes.
Upgrade Node.js to >=20 or use the standalone binary from GitHub releases.
Convert config to TOML format and rename to mdlint.toml.
If custom rules are needed, use markdownlint (Node.js) or other linters.
Replace 'mdlint check --fix' with 'mdlint format'.
Specify files directly: mdlint check path/to/ignored/file.md
Use npx mdlint or install globally: npm install -g markdownlint-rs
Remove --fix from format command, or use 'mdlint check --fix'.
Rename config file to use .toml extension.