This is a simple PowerShell module to check links correctness in your markdown files. It supports both absolute and relative links. The primary scenario that it targets is verifing markdown docs hosted on GitHub.
The heavy lifting of parsing markdown is done by markdig.
This is a very early work. Markdig.dll committed directly to this repo to make build process simpler. It should be done more elegantly in the future.
From the gallery
> Install-Module MarkdownLinkCheck -Scope CurrentUser
To check all markdown links in your project, run these commands in the root of your repo
# load the module
> Import-Module MarkdownLinkCheck
> Get-MarkdownLink -BrokenOnly
You can pass path as a parameter
> Get-MarkdownLink -BrokenOnly -Path .\docs
If you want to use the module in CI, you may find useful ability to throw exception, if any broken links are found
> Get-MarkdownLink -BrokenOnly -ThrowOnBroken