mdrefcheck

Crates.iomdrefcheck
lib.rsmdrefcheck
version0.2.1
created_at2025-09-14 14:15:22.716937+00
updated_at2026-01-24 13:53:14.341885+00
descriptionA CLI tool to validate references in markdown files.
homepagehttps://github.com/gospodima/mdrefcheck
repositoryhttps://github.com/gospodima/mdrefcheck
max_upload_size
id1838822
size58,146
(gospodima)

documentation

README

mdrefcheck

PyPI version crates.io version Build Status License

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
  • Ignore files support via ignore crate.

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.2.1
    hooks:
      - id: mdrefcheck
Commit count: 28

cargo fmt