theaquamarine / MarkdownLinkCheck

Check links correctness in your markdown files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MarkdownLinkCheck

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.

Install

From the gallery

> Install-Module MarkdownLinkCheck -Scope CurrentUser

Usage

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

About

Check links correctness in your markdown files

License:MIT License


Languages

Language:PowerShell 100.0%