Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rumdl

> 数据库
Open source

Fast Markdown linter and formatter written in Rust

1.4K stars0 likes1 views
WebsiteGitHub

About

Fast Markdown linter and formatter written in Rust

rumdl

Quick Start

bash
# 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 init

Already 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.

Overview

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:

  • ⚡️ Built for fast feedback with a native Rust binary and result caching
  • 85 lint rules covering common Markdown issues
  • ️ Automatic formatting with --fix for files and stdin/stdout
  • Zero dependencies - single binary with no runtime requirements
  • Highly configurable with TOML-based config files
  • Built-in Markdown flavors - GFM, MkDocs, MDX, Quarto, MyST, and more, with auto-detection for supported file names
  • Multiple installation options - Rust, Python, standalone binaries
  • Installable via pip for Python users
  • Modern CLI with detailed error reporting
  • CI/CD friendly with non-zero exit code on errors

Performance

rumdl 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.

Table of Contents

  • Installation
    • Using Homebrew (macOS/Linux)
    • Using Cargo (Rust)
    • Using npm
    • Using pip (Python)
    • Using uv
    • Using mise
    • Using Nix (macOS/Linux)
    • Using Termux User Repository (TUR) (Android)
    • Using pacman (Arch Linux)
    • Download binary
    • Editor Plugins
    • Shell Completions
  • Usage
    • Stdin/Stdout Formatting
    • Editor Integration
  • Pre-commit Integration
    • Excluding Files in Pre-commit
  • CI/CD Integration
    • GitHub Actions
      • Inputs
      • Examples
    • MegaLinter
  • Rules
  • Flavors
    • Supported Flavors
    • Configuring Flavors
  • Command-line Interface
    • Commands
      • check [PATHS...]
      • fmt [PATHS...]
      • init [OPTIONS]
      • import <FILE> [OPTIONS]
      • rule [<rule>]
      • config [OPTIONS] [COMMAND]
      • server [OPTIONS]
      • vscode [OPTIONS]
      • completions [SHELL]
      • version
    • Global Options
    • Exit Codes
    • Usage Examples
  • LSP
  • Configuration
    • Configuration Discovery
    • Editor Support (JSON Schema)
    • Global Configuration
    • Markdownlint Migration
    • Inline Configuration
    • Configuration File Example
    • Style Guide Presets
    • Initializing Configuration
    • Configuration in pyproject.toml
    • Configuration Output
      • Effective Configuration (rumdl config)
      • Example output
    • Defaults Only (rumdl config --defaults)
    • Non-Defaults Only (rumdl config --no-defaults)
  • Output Style
    • Output Format
      • Text Output (Default)
      • JSON Output
  • Stability
  • Development
    • Prerequisites
    • Building
    • Testing
    • JSON Schema Generation
  • Used By
  • Sponsors
  • License

Installation

Choose the installation method that works best for you:

Using winget (Windows)

powershell
winget install --id rvben.rumdl --exact

Using Homebrew (macOS/Linux)

bash
brew install rumdl

Using Cargo (Rust)

bash
cargo install rumdl

Using npm

bash
npm install -g rumdl

Or as a dev dependency:

bash
npm install --save-dev rumdl

Using pip (Python)

bash
pip install rumdl

Using uv

For faster installation and better dependency management with uv:

bash
# Install directly
uv tool install rumdl

# Or run without installing
uvx rumdl check .

Using mise

For dependency management with mise. rumdl is in mise's tool registry, so no plugin or backend setup is needed:

bash
# 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]

Using Nix (macOS/Linux)

bash
nix-channel --update
nix-env --install --attr nixpkgs.rumdl

Alternatively, you can use flakes to run it without installation.

bash
nix run --extra-experimental-features 'flakes nix-command' nixpkgs/nixpkgs-unstable#rumdl -- --version

Using Termux User Repository (TUR) (Android)

After enabling the TUR repo using

bash
pkg install tur-repo
bash
pkg install rumdl

Using pacman (Arch Linux)

rumdl is available in the official Arch Linux repositories:

bash
pacman -S rumdl

Download binary

bash
# 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"

Using Docker

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):

bash
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:

bash
docker run --rm -v "$PWD:/data" ghcr.io/rvben/rumdl:alpine rumdl check .
yaml
# .gitlab-ci.yml
lint-markdown:
  image: ghcr.io/rvben/rumdl:alpine
  script:
    - rumdl check .

Editor Plugins

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.

Shell Completions

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:

bash
source <(rumdl completions bash)

Zsh — add to ~/.zshrc:

bash
source <(rumdl completions zsh)

Or install system-wide for zsh:

bash
rumdl completions zsh > "${fpath[1]}/_rumdl"

Fish — write the completion file once:

fish
rumdl completions fish > ~/.config/fish/completions/rumdl.fish

PowerShell — add to your $PROFILE:

powershell
rumdl completions powershell | Out-String | Invoke-Expression

Elvish — add to ~/.config/elvish/rc.elv:

elvish
eval (rumdl completions elvish | slurp)

Usage

Getting started with rumdl is simple:

bash
# 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 init

Common usage examples:

…

Stdin/Stdout Formatting

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.

Editor Integration

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:

bash
# Format selection in editor (example for vim)
:'<,'>!rumdl fmt - --silent

# Format entire buffer
:%!rumdl fmt - --silent

Pre-commit Integration

You 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:

rumdl-pre-commit repository

Add the following to your .pre-commit-config.yaml:

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 violations

Two 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 detection

This mirrors the ruff + ruff-format split:

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustclideveloper-toolsformatterlinter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库