Utility to check url, section reference, and path links in Markdown files
Project description
MD-LINK-CHECKER - Utility to check url, section reference, and path links in Markdown files
This is a simple command line utility to check url, section reference, and path
links in Markdown files. It iterates through the specified Markdown files and
checks each link in the file for validity. If no file is specified then it
defaults to checking README.md in the current directory. URL fetches can be
slow over the internet so they are checked simultaneously (maximum 10 in
parallel per file by default but you can change that using the
-p/--parallel-url-checks option). There are a number of similar utilities
available so why did I create another one? Well, all those that I tried didn't
work!
E.g. check links in the README.md file in the current directory:
$ cd /path/to/my/project
$ md-link-checker
Check links in all the README.md files across your projects:
$ cd ..
$ md-link-checker */README.md
The latest version and documentation is available at https://github.com/bulletmark/md-link-checker.
Installation or Upgrade
Python 3.8 or later is required. md-link-checker is on
PyPI so the easiest way to install
it is to use uv tool:
$ uv tool install md-link-checker
To upgrade:
$ uv tool upgrade md-link-checker
To uninstall:
$ uv tool uninstall md-link-checker
Command Line Options
Type md-link-checker -h to view the usage summary:
usage: md-link-checker [-h] [-u] [-p PARALLEL_URL_CHECKS] [-f] [-v]
[files ...]
Utility to check url, section reference, and path links in Markdown files.
positional arguments:
files one or more markdown files to check, default =
"README.md"
options:
-h, --help show this help message and exit
-u, --no-urls do not check URL links, only check section and path
links
-p, --parallel-url-checks PARALLEL_URL_CHECKS
max number of parallel URL checks to perform per file
(default=10)
-f, --no-fail do not return final error code after failures
-v, --verbose print links found in file as they are checked
License
Copyright (C) 2025 Mark Blakeney. This program is distributed under the terms of the GNU General Public License. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses/ for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md_link_checker-1.3.tar.gz.
File metadata
- Download URL: md_link_checker-1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae81b7324b002d883fc5fbdc06f90c27536ee9836e70cc748e81b887f0aa8d65
|
|
| MD5 |
5a709a73531c81f962744954f7d36a4d
|
|
| BLAKE2b-256 |
87c05f2bc3bc644f9e67cab263d3af6d244bf586f9796bd8d9c3d5ed74da1b96
|
File details
Details for the file md_link_checker-1.3-py3-none-any.whl.
File metadata
- Download URL: md_link_checker-1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ebe2ff1564bfe9498e159d5f57136689ceef8401a985fc980f905815e25cef8
|
|
| MD5 |
ceb536f7a0e19d0bfc55dc18bb2bbb44
|
|
| BLAKE2b-256 |
c1e8a72d48079afb2a14c51f850fb537312922ea23a7636b72bfded277f7252d
|