Skip to main content

A markdown link validation reporting tool.

Project description

PyPi Documentation Status Downloads

GitHub issues Contributing

markdown-checker is a markdown link validation reporting tool. It provides a couple of functions to validate relative paths and web URLs.

Installation

Install the package:

pip install markdown-checker

Documentation

1, 2, 3 - How To

  1. Run pip install markdown-checker.
  2. Run markdown-checker -d {src} -f {func} -gu {url}. Replace {src} with the directory you want to analyze, {func} with the available functions like check_broken_paths, {gu} with your contribution guidance full URL.
  3. The output will be displayed in the terminal and in a comment.md file.

For more customizations read the docs.

Note: When using list parameters (like --skip-domains, --skip-files, etc.), provide values as comma-separated without spaces: --skip-domains=example.com,test.com. Do not use square brackets or spaces after commas. See the Advanced Usage documentation for detailed examples.

Using markdown-checker in GitHub Actions

You can run this tool within a GitHub workflow using the action-check-markdown GitHub action.

The action will automatically post the output of the tool to your GitHub pull request as a comment.

Usage

The library provides the following functions:

check_broken_paths

This function ensures that any relative path in your files are working.

Example:

markdown-checker -d . -f check_broken_paths -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_broken_urls

This function ensures that any web URL in your files is working and returning 200 status code.

Example:

markdown-checker -d . -f check_broken_urls -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_urls_locale

This function checks if country specific locale is present in URLs.

Example:

markdown-checker -d . -f check_urls_locale -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_paths_tracking

This function ensures that any relative path has tracking in it.

Example:

markdown-checker -d . -f check_paths_tracking -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_urls_tracking

This function ensures that any URL has tracking in it.

Example:

markdown-checker -d . -f check_urls_tracking -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

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

markdown_checker-1.1.0.tar.gz (133.2 kB view details)

Uploaded Source

Built Distribution

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

markdown_checker-1.1.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file markdown_checker-1.1.0.tar.gz.

File metadata

  • Download URL: markdown_checker-1.1.0.tar.gz
  • Upload date:
  • Size: 133.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for markdown_checker-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0a707c6a30509c81a2f71b48a527a79387a19c16ea097f2242755da11681ff9c
MD5 a22fccf2e5f9bebc2aa4134ef8138b40
BLAKE2b-256 cd4b459471d805070d5610513f0d290c1e0fca3a71e9a4563dcd484770eb9dc1

See more details on using hashes here.

File details

Details for the file markdown_checker-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: markdown_checker-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for markdown_checker-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e63ea36dd48f81514ce0b781d684f89321f8e2a3dbfb63511fa89d7d31aef130
MD5 87e0c68c0cdd04775efd6e6bfde46c3d
BLAKE2b-256 855fa6a7d8f8bf60dba28ede48eebfcf360b106e2f23e80a8104797fd5ad1be5

See more details on using hashes here.

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