markdown-link-check¶
npm package providing CLI tool and libraries for checking links in Markdown files.
Exclusions¶
Ignore known problem links.
Disable next line:
Disable current line:
Disable block:
<!-- markdown-link-check-disable --> disables markdown link check. <!-- markdown-link-check-enable -->
Install¶
Usage¶
$ markdown-link-check README.md
FILE: README.md
[✓] https://mike.bailey.net.au/notes
[✓] https://github.com/mbailey/notes/blob/master/notes.sh
[✓] docs/fast-learning.md
[✓] https://www.youtube.com/embed/N5b4_5hvOog
4 links checked.
Recursive:
Bash function:
Check given directory (defaults to current)
markdown-link-check-dir () {
cd "${1:-.}";
find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -q
}
Alias:
- Only report on problems
- Don't treat unauthenticated as a broken link