Fast Markdown linter and formatter written in Rust
# Run once without installing
uvx rumdl check .
# After installing with Homebrew, Cargo, npm, pip, uv, or another package manager
rumdl check .
# Format files (exits 0 on success, even if unfixable violations remain)
rumdl fmt .
# Auto-fix and report unfixable violations (exits 0 if all fixed, 1 if violations remain)
rumdl check --fix .
# Create a default configuration file
rumdl initAlready use markdownlint? Keep the existing configuration for the first run. rumdl discovers common markdownlint and markdownlint-cli2 configuration files automatically, so you can compare results before changing your workflow.
Projects using rumdl include Firefox, Docker Docs, Apache Lucene, Carbon, Crystal, PyO3, and Rustlings. See the complete public adopter list.
rumdl helps authors and maintainers keep Markdown consistent without pulling slow feedback out of the editor and CI loop. Inspired by Ruff, it combines linting, formatting, caching, and editor integration in a single tool.
Questions or feedback? Join us on Discord.
It offers:
--fix for files and stdin/stdoutrumdl is designed for speed. See the benchmark methodology for the dated Rust Book results, scope, and limitations:
With intelligent caching, subsequent runs are even faster - rumdl only re-lints files that have changed, making it ideal for watch mode and editor integration.
rumdl config --defaults)rumdl config --no-defaults)Choose the installation method that works best for you:
winget install --id rvben.rumdl --exactbrew install rumdlcargo install rumdlnpm install -g rumdlOr as a dev dependency:
npm install --save-dev rumdlpip install rumdlFor faster installation and better dependency management with uv:
# Install directly
uv tool install rumdl
# Or run without installing
uvx rumdl check .For dependency management with mise. rumdl is in mise's tool registry, so no plugin or backend setup is needed:
# List available versions
mise ls-remote rumdl
# Install the latest version
mise install rumdl
# Use a specific version for the project
mise use [email protected]nix-channel --update
nix-env --install --attr nixpkgs.rumdlAlternatively, you can use flakes to run it without installation.
nix run --extra-experimental-features 'flakes nix-command' nixpkgs/nixpkgs-unstable#rumdl -- --versionAfter enabling the TUR repo using
pkg install tur-repopkg install rumdlrumdl is available in the official Arch Linux repositories:
pacman -S rumdl# Linux/macOS
curl -LsSf https://github.com/rvben/rumdl/releases/latest/download/rumdl-linux-x86_64.tar.gz | tar xzf - -C /usr/local/bin
# Windows PowerShell
Invoke-WebRequest -Uri "https://github.com/rvben/rumdl/releases/latest/download/rumdl-windows-x86_64.zip" -OutFile "rumdl.zip"
Expand-Archive -Path "rumdl.zip" -DestinationPath "$env:USERPROFILE\.rumdl"Multi-arch images (amd64, arm64) are published to the GitHub Container Registry on every release. Mount your project at /data (the working directory inside the container):
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/data" ghcr.io/rvben/rumdl:latest check .
# Pin a specific version
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/data" ghcr.io/rvben/rumdl:0.3.0 check .The image runs as a non-root user by default, so it never writes root-owned files into your project.
Passing --user runs rumdl as your own user, which lets the lint cache (.rumdl_cache) be written into the mounted project with your ownership; without it the cache is skipped gracefully.
The image contains only the static rumdl binary, so there is no shell to enter; pass rumdl arguments directly.
For environments that need a shell inside the image, such as GitLab CI job containers, an Alpine-based flavour is published as ghcr.io/rvben/rumdl:alpine (or pin :<version>-alpine).
It has no rumdl entrypoint; invoke the binary by name:
docker run --rm -v "$PWD:/data" ghcr.io/rvben/rumdl:alpine rumdl check .# .gitlab-ci.yml
lint-markdown:
image: ghcr.io/rvben/rumdl:alpine
script:
- rumdl check .| Editor | Install |
|---|---|
| VS Code / Cursor / Windsurf | rumdl vscode or Marketplace |
| JetBrains (PyCharm, IntelliJ, etc.) | JetBrains Marketplace |
All plugins provide real-time linting, formatting on save, hover documentation, and automatic configuration discovery.
rumdl can generate tab-completion scripts via rumdl completions [SHELL]. Supported shells: bash, zsh, fish, powershell, elvish.
When SHELL is omitted, rumdl auto-detects it from $SHELL. Run rumdl completions --list to see all supported shells.
Bash — add to ~/.bashrc:
source <(rumdl completions bash)Zsh — add to ~/.zshrc:
source <(rumdl completions zsh)Or install system-wide for zsh:
rumdl completions zsh > "${fpath[1]}/_rumdl"Fish — write the completion file once:
rumdl completions fish > ~/.config/fish/completions/rumdl.fishPowerShell — add to your $PROFILE:
rumdl completions powershell | Out-String | Invoke-ExpressionElvish — add to ~/.config/elvish/rc.elv:
eval (rumdl completions elvish | slurp)Getting started with rumdl is simple:
# Lint a single file
rumdl check README.md
# Lint all Markdown files in current directory and subdirectories
rumdl check .
# Format a specific file
rumdl fmt README.md
# Create a default configuration file
rumdl initCommon usage examples:
…rumdl supports formatting via stdin/stdout, making it ideal for editor integrations and CI pipelines:
…Use --silent whenever stdout should contain only formatted Markdown. Plain rumdl fmt - may also emit remaining diagnostics.
For editor integration, use stdin/stdout mode with the --silent flag when you want pure formatted output on stdout.
Use --quiet if you still want diagnostics but want to suppress summary lines:
# Format selection in editor (example for vim)
:'<,'>!rumdl fmt - --silent
# Format entire buffer
:%!rumdl fmt - --silentYou can use rumdl as a pre-commit hook to check and format your Markdown files.
The recommended way is to use the official pre-commit hook repository:
Add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.2.73
hooks:
- id: rumdl # Lint only; add args [--fix] to auto-fix
- id: rumdl-fmt # Pure format, exits 0 on violationsTwo hooks are available:
rumdl - Lints files and exits 1 if violations are found; non-destructive by default (recommended as the primary hook)rumdl-fmt - Formats files in place and exits 0 whether or not violations remain; relies on pre-commit's file-change detectionThis mirrors the ruff + ruff-format split:
No open issues yet, or sync has not completed.