Skip to content
Tech News
← Back to articles

Mado: Fast Markdown linter written in Rust

read original get Rust Markdown Linter Tool → more articles
Why This Matters

Mado is a highly efficient Markdown linter built in Rust, offering significantly faster performance compared to traditional linters like markdownlint. Its speed and compatibility with CommonMark and GFM make it a valuable tool for developers managing large documentation projects, enhancing productivity and ensuring consistent markdown quality. This advancement could lead to broader adoption of Rust-based tools in the development ecosystem, promoting faster and more reliable code and documentation checks.

Key Takeaways

Mado

A fast Markdown linter written in Rust. Compatible with CommonMark and GitHub Flavored Markdown (GFM).

Usage

mado check . mado check path/to/ * .md

Performance

Approx. 49-60x faster than existing linters (e.g. markdownlint).

--- config: xyChart: height: 200 titleFontSize: 14 chartOrientation: horizontal xAxis: labelFontSize: 12 titleFontSize: 14 yAxis: labelFontSize: 12 titleFontSize: 14 --- xychart-beta title "Linting ~1,500 Markdown files (Lower is faster)" x-axis ["mado (rust)", "markdownlint-cli (node.js)", "markdownlint (ruby)", "markdownlint-cli2 (node.js)"] y-axis "Time (seconds)" 0 --> 10 bar [0.129, 6.381, 6.609, 7.817] Loading

This benchmark was conducted on a MacBook Pro (2021, M1 Max) using hyperfine with GitLab documentation as the dataset.

Installation

Homebrew (macOS and Linux)

... continue reading