4 releases
Uses new Rust 2024
| 0.1.8 | Sep 22, 2025 |
|---|---|
| 0.1.7 | Sep 18, 2025 |
| 0.1.6 | Sep 16, 2025 |
| 0.1.5 | Sep 14, 2025 |
#827 in Development tools
35 downloads per month
21KB
422 lines
mdrefcheck
A CLI tool to validate references and links in Markdown files (CommonMark spec).
It helps to ensure that your documentation is free from broken section links, missing images or files.
Features
- Validate local file paths in image and file references
- Check section links against actual headings, following GitHub Flavored Markdown (GFM) rules, including cross-file references (e.g.
./subfolder/another-file.md#heading-link) - Detect broken reference-style links
- Basic email validation
Installation
Cargo
cargo install mdrefcheck
PyPI
pip install mdrefcheck
or run it directly in an isolated environment, e.g., with uvx:
uvx mdrefcheck .
Pre-commit integration
Add this to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/gospodima/mdrefcheck
rev: v0.1.8
hooks:
- id: mdrefcheck
Dependencies
~4–14MB
~140K SLoC