mdx-local-link-checker

2.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mdx-local-link-checker

Weekly Downloads

119

Version

2.1.1

License

MIT

Unpacked Size

7.06 kB

Total Files

4

Last publish

Collaborators

  • karlhorky