Skip to main content

Tool for validating references in Markdown files.

Project description

RefCheck

RefCheck is a simple tool for validating markdown references and highlighting broken ones.

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

Installation

RefCheck is available on PyPI:

pip install refcheck

Examples

$ refcheck README.md

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

[+] Checking README.md...
README.md:3: #introduction - OK
README.md:5: #installation - OK
README.md:6: #getting-started - OK
README.md:24: https://www.github.com - OK

Reference check complete.

============================| Summary |=============================
🎉 No broken references.
====================================================================
$ refcheck .

[+] Searching for markdown files in C:\Users\flumi3\github\refcheck ...
[+] 2 Markdown files to check.
- tests\sample_markdown.md
- docs\Understanding-Markdown-References.md

[+] Checking 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

[+] Checking 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.2.tar.gz (8.6 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.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refcheck-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 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.2.tar.gz
Algorithm Hash digest
SHA256 9e1b2402236b830687b3b1170d14baeb6f5073ef83e9bb7befb2270bbf77c0ca
MD5 c7cbdd7f70b6081ca2d9b8859d8a346f
BLAKE2b-256 effe33290402dc8f6e95c50bafd0e81b1abb20020109a5299fa76e86b9e15e08

See more details on using hashes here.

Provenance

The following attestation bundles were made for refcheck-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: refcheck-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c15ec6a92a52ace8b770bbe419425b6f379d7a7a088ecb60cac776d2ed229870
MD5 f6cbdbc74196c08ce6f9d67a20cb1711
BLAKE2b-256 68e638951b685f0ca1a6b2b93c058a80a5522b3b918fb0dbe7e7be842cc0b0dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for refcheck-0.1.2-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