I have a problem: I'll write up a bunch of Markdown files that link to each other, then I'll move some of them, and in the process I'll forget to update links. This is a bummer, so I wrote this thing to fix it.
$ markcheck # same as markcheck .
$ markcheck /path/to/git/repo ... # scan one or more repos
markcheck
will report two types of errors:
- A document contains a link to a file that doesn't exist
- A non-
readme
document exists, but nobody links to it
Markcheck is [barely] tested with Lazytest.
$ ./markcheck; echo $?
./README.md:32: invalid link to should-be-missing
./orphaned.md is orphaned
1
[This link should be ignored](should-be-ignored)
MIT as usual.