Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 756 Bytes

readme.md

File metadata and controls

29 lines (21 loc) · 756 Bytes

MDX Local Link Checker

A broken link checker for MDX and Markdown.

Usage

mdx-local-link-checker [dir] [basepath] [ignorePattern]

Examples

# Check the current directory with no ignore patterns
mdx-local-link-checker

# Check the src/pages folder, ignoring anything in a
# folder called "books" (at any depth)
mdx-local-link-checker src/pages src/pages "/books/**"

# Check the src/pages folder, ignoring anything in a
# folder called "books" or "slide-decks" (at any depth)
mdx-local-link-checker src/pages src/pages "/(books|slide-decks)/**"

# Check only the docs folder with the src/pages
# folder set to be the base path (for root-relative
# links such as "/docs/router")
mdx-local-link-checker src/pages/docs src/pages