Skip to main content

Tool for finding broken references and links in Markdown files.

Project description

RefCheck

RefCheck is a simple tool for finding broken references and links in Markdown files.

usage: refcheck [OPTIONS] [PATH ...]

positional arguments:
  PATH                  Markdown files or directories to check

options:
  -h, --help            show this help message and exit
  -e, --exclude [ ...]  Files or directories to exclude
  -cm, --check-remote   Check remote references (HTTP/HTTPS links)
  -n, --no-color        Turn off colored output
  -v, --verbose         Enable verbose output

:memo: Note: RefCheck is still in its early development. If you encounter any issues or have suggestions, please feel free to open an issue or pull request.

Installation

RefCheck is available on PyPI:

pip install refcheck

Examples

$ refcheck README.md

[+] 1 Markdown files to check.
- README.md

[+] FILE: README.md...
README.md:3: #introduction - OK
README.md:5: #installation - OK
README.md:6: #getting-started - OK

Reference check complete.

============================| Summary |=============================
🎉 No broken references.
====================================================================
$ refcheck . --check-remote

[+] Searching for markdown files in C:\Users\flumi3\github\refcheck ...

[+] 2 Markdown files to check.
- tests\sample_markdown.md
- docs\Understanding-Markdown-References.md

[+] FILE: tests\sample_markdown.md...
tests\sample_markdown.md:39: /img/image.png - BROKEN
tests\sample_markdown.md:52: https://www.openai.com/logo.png - BROKEN

[+] FILE: docs\Understanding-Markdown-References.md...
docs\Understanding-Markdown-References.md:42: #local-file-references - OK

Reference check complete.

============================| Summary |=============================
[!] 2 broken references found:
tests\sample_markdown.md:39: /img/image.png
tests\sample_markdown.md:52: https://www.openai.com/logo.png
====================================================================

Features

  • Find and check various reference patterns in markdown files
  • Highlight broken references
  • Validate absolute and relative file paths to any file type
  • Support for checking remote references, such as [Google](https://www.google.com)
  • User friendly CLI
  • Easy CI pipeline integration

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refcheck-0.1.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refcheck-0.1.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file refcheck-0.1.3.tar.gz.

File metadata

  • Download URL: refcheck-0.1.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for refcheck-0.1.3.tar.gz
Algorithm Hash digest
SHA256 acdc4f560311ae99424896891924e264760b92ea84bcbb5b587367a46d23a632
MD5 b03dfa4012fd1baa1725f124ec2145e7
BLAKE2b-256 e9d30095ab0c1f56d3226c0c5a9f882650d731a8454ebd7dc7a6d70520344af6

See more details on using hashes here.

Provenance

The following attestation bundles were made for refcheck-0.1.3.tar.gz:

Publisher: release.yml on flumi3/refcheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file refcheck-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: refcheck-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for refcheck-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28b52fac71f15b7c6d76bd6320946c1058419185bfe5119db6da2d50c7328e7b
MD5 b15fe3bd3dc381df4501ba8f7f6aee6e
BLAKE2b-256 1f31b4984605498e2eec57cc6533838c958c90be442f1565029fd17765ed6c94

See more details on using hashes here.

Provenance

The following attestation bundles were made for refcheck-0.1.3-py3-none-any.whl:

Publisher: release.yml on flumi3/refcheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page