mdrefcheck

Crates.iomdrefcheck
lib.rsmdrefcheck
version0.1.8
created_at2025-09-14 14:15:22.716937+00
updated_at2025-09-22 20:04:07.525279+00
descriptionA CLI tool to validate references in markdown files.
homepagehttps://github.com/gospodima/mdrefcheck
repositoryhttps://github.com/gospodima/mdrefcheck
max_upload_size
id1838822
size40,320
(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

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
Commit count: 24

cargo fmt