Skip to content

pre-commit: add markdown-link-check to check for dead links in Markdown files #30

@jbampton

Description

@jbampton

A docs repo that uses Markdown should use all the best tools to ensure its Markdown is correct etc.

So link checkers and linters are great.

I am suggesting markdown-link-check here but there is also lychee:

"Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more! "

https://github.com/lycheeverse/lychee

refs #29

But I could not get lychee working with pre-commit on Apache Sedona and there is an open issue regarding what I found

apache/sedona#1366

lycheeverse/lychee#1635

Otherwise markdown-link-check is a popular tool:

https://github.com/tcort/markdown-link-check

https://github.com/tcort/markdown-link-check?tab=readme-ov-file#run-as-a-pre-commit-hook

The config file supports many options/parameters:

https://github.com/tcort/markdown-link-check?tab=readme-ov-file#config-file-format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions