| Crates.io | md_check |
| lib.rs | md_check |
| version | 0.1.1 |
| created_at | 2025-06-23 18:38:27.495325+00 |
| updated_at | 2025-06-24 12:55:48.566912+00 |
| description | Check markdown link validity. |
| homepage | |
| repository | https://github.com/EricLBuehler/md_check |
| max_upload_size | |
| id | 1723258 |
| size | 75,395 |
A fast and reliable command-line tool for checking dead links in Markdown files. Written in Rust, md_check helps you maintain documentation by finding broken links, invalid URLs, and missing local file references.
.md files)Ensure you have Rust installed, then:
cargo install md_check
Ensure you have Rust installed, then:
git clone https://github.com/EricLBuehler/md_check.git
cd md_check
cargo build --release
The binary will be available at target/release/md_check.
md_check README.md
md_check [OPTIONS] <FILE>
<FILE> - Path to the markdown file to check-t, --timeout <TIMEOUT> - Timeout for each request in seconds (default: 30)-v, --verbose - Enable verbose output to see each link as it's checked-h, --help - Print help information-V, --version - Print version informationCheck a file with verbose output:
md_check --verbose docs/guide.md
Check with a custom timeout:
md_check --timeout 10 README.md
pulldown-cmark to extract all links.md files: Checks if the file exists on the filesystemInfo: Checking links in: README.md
Info: Found 15 links to check
Success: All links are valid! ✓
Info: Checking links in: docs/guide.md
Info: Found 20 links to check
Error: Found 3 dead or invalid links:
✗ Line 45: https://example.com/broken-link
└─ Error: HTTP 404
✗ Line 67: ./missing-file.md
└─ Error: File not found: ./missing-file.md
⚠ Line 89: ./other-file.md#missing-anchor
└─ Invalid: Anchor 'missing-anchor' not found in other-file.md
0 - All links are valid1 - One or more dead links found or error occurredcargo test
cargo build
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
Built with these excellent Rust crates: