Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flumi3/refcheck
Find broken references and links in Markdown files.
https://github.com/flumi3/refcheck
broken-link-finder broken-links links markdown reference references
Last synced: 26 days ago
JSON representation
Find broken references and links in Markdown files.
- Host: GitHub
- URL: https://github.com/flumi3/refcheck
- Owner: flumi3
- License: mit
- Created: 2024-11-18T09:19:19.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T11:18:47.000Z (about 1 month ago)
- Last Synced: 2024-11-28T12:21:48.335Z (about 1 month ago)
- Topics: broken-link-finder, broken-links, links, markdown, reference, references
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RefCheck
RefCheck is a simple tool for finding broken references and links in Markdown
files.```text
usage: refcheck [OPTIONS] [PATH ...]positional arguments:
PATH Markdown files or directories to checkoptions:
-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:
```bash
pip install refcheck
```## Examples
```text
$ 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 - OKReference check complete.
============================| Summary |=============================
🎉 No broken references.
====================================================================
``````text
$ 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 - OKReference 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