A tool to check for broken links in markdowns. Because mlc can check links in parallel, it is very fast. Check for links that are described as markdown links or images.
It does not check for links in code like the following.
xxx
It supports two ways of loading markdowns.
- To check the markdown by loading it directly from
raw.githubusercontent.com
.
$ mlc https://raw.githubusercontent.com/d-tsuji/flower/master/README.md
1 file found.
FILE: README.md
Checking... 13 / 13 [--------------------] 100.00%
[✓] https://img.shields.io/badge/license-MIT-blue.svg
[✓] https://en.wikipedia.org/wiki/Directed_acyclic_graph
[✓] https://github.com/d-tsuji/flower/workflows/build/badge.svg
[✓] https://godoc.org/github.com/d-tsuji/flower
[✓] #post-registertask_id
[✓] /doc/images/system_overview.png
[✓] https://goreportcard.com/badge/github.com/d-tsuji/flower
[✓] https://goreportcard.com/report/github.com/d-tsuji/flower
[✓] https://github.com/d-tsuji/flower/blob/master/LICENSE
[✓] /doc/images/task_structure.png
[✓] https://github.com/jwilder/dockerize
[✓] https://github.com/d-tsuji/flower/actions
[✓] https://godoc.org/github.com/d-tsuji/flower?status.svg
- Check the links in the markdown files contained in the entire repository.
It is usually assumed that you specify the repository you are the owner of. You need an access token. You can scan without a token, but you are subject to GitHub's RateLimit limit.
$ mlc --user d-tsuji --repo flower --token 0123456789abcdefghijklmnopqrstuvwxyz0123 --all
1 file found.
FILE: README.md
Checking... 13 / 13 [--------------------] 100.00%
[✖] /doc/images/system_overview.png
[✖] /doc/images/task_structure.png
[✓] https://img.shields.io/badge/license-MIT-blue.svg
[✓] #post-registertask_id
[✓] https://github.com/d-tsuji/flower/actions
[✓] https://github.com/d-tsuji/flower/blob/master/LICENSE
[✓] https://github.com/d-tsuji/flower/workflows/build/badge.svg
[✓] https://github.com/jwilder/dockerize
[✓] https://godoc.org/github.com/d-tsuji/flower?status.svg
[✓] https://godoc.org/github.com/d-tsuji/flower
[✓] https://en.wikipedia.org/wiki/Directed_acyclic_graph
[✓] https://goreportcard.com/report/github.com/d-tsuji/flower
[✓] https://goreportcard.com/badge/github.com/d-tsuji/flower
13 links checked.
ERROR: 2 dead links found!
[✖] /doc/images/system_overview.png -> Status: 404
[✖] /doc/images/task_structure.png -> Status: 404
If you need the Binary file, download the zip file of the version you want from the Releases page. Unzip the zip file and place the Binary file where the path will take you.
$ brew tap d-tsuji/mlc
$ brew install mlc
$ sudo rpm -ivh https://github.com/d-tsuji/markdown-link-check/releases/download/v0.0.7/mlc_0.0.7_Tux-64-bit.rpm
$ wget https://github.com/d-tsuji/markdown-link-check/releases/download/v0.0.7/mlc_0.0.7_Tux-64-bit.deb
$ sudo dpkg -i mlc_0.0.7_Tux-64-bit.deb
$ go get -u github.com/d-tsuji/mlc/cmd/mlc