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