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)
-nc, --no-color Turn off colored output
-v, --verbose Enable verbose output
--allow-absolute Allow absolute path references like [ref](/path/to/file.md)
:construction: 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. :construction:
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 - perfect for ensuring the quality of your Wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refcheck-0.1.5.tar.gz.
File metadata
- Download URL: refcheck-0.1.5.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72099ebd77c2c0f01a4333e8f31a47c037124be35a3cb53ac223bfc7f6505519
|
|
| MD5 |
453cfb509a81716d974fd89c04d0ebe5
|
|
| BLAKE2b-256 |
271f45e84531c03d1ae5a409fe41ef8dfd472a2d15e3a73e7dec11f2c4a36947
|
Provenance
The following attestation bundles were made for refcheck-0.1.5.tar.gz:
Publisher:
release.yml on flumi3/refcheck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
refcheck-0.1.5.tar.gz -
Subject digest:
72099ebd77c2c0f01a4333e8f31a47c037124be35a3cb53ac223bfc7f6505519 - Sigstore transparency entry: 164448274
- Sigstore integration time:
-
Permalink:
flumi3/refcheck@b5fb04948ef3e393b7caf00babd3e1b5595ccd00 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/flumi3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5fb04948ef3e393b7caf00babd3e1b5595ccd00 -
Trigger Event:
push
-
Statement type:
File details
Details for the file refcheck-0.1.5-py3-none-any.whl.
File metadata
- Download URL: refcheck-0.1.5-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4a022272a019c0a3f11b30ed6179703d1cfff6c18537a173ace8455ff2b8988
|
|
| MD5 |
8108f24c937520714bbcd423580ba3dd
|
|
| BLAKE2b-256 |
7c58aaa6ada0dd650de1e9da41045afabb549dbbcacfa25ef1a79ad147bc09f6
|
Provenance
The following attestation bundles were made for refcheck-0.1.5-py3-none-any.whl:
Publisher:
release.yml on flumi3/refcheck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
refcheck-0.1.5-py3-none-any.whl -
Subject digest:
c4a022272a019c0a3f11b30ed6179703d1cfff6c18537a173ace8455ff2b8988 - Sigstore transparency entry: 164448276
- Sigstore integration time:
-
Permalink:
flumi3/refcheck@b5fb04948ef3e393b7caf00babd3e1b5595ccd00 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/flumi3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5fb04948ef3e393b7caf00babd3e1b5595ccd00 -
Trigger Event:
push
-
Statement type: