Skip to main content

Linkify GitHub Markdown

CI Status Test coverage percentage

uv Ruff prek

PyPI Version Supported Python versions License


Source Code: https://github.com/browniebroke/linkify-gh-markdown


Turn URLs and handles in GitHub markdown into actual links to GitHub issues, pull requests or user profiles.

Installation

Install this via pip (or your favourite package manager):

pip install linkify-gh-markdown

Usage

This tool processes a markdown file and converts plain text GitHub references into proper markdown links:

  • @username mentions become [@username](https://github.com/username)
  • Pull request URLs like https://github.com/owner/repo/pull/123 become [#123](https://github.com/owner/repo/pull/123)

The result is printed to stdout.

linkify-gh-markdown path/to/file.md

Use --heading-level to shift all headings so the top-level heading in the output is at the given level (1–6):

linkify-gh-markdown --heading-level 2 path/to/file.md
 Usage: linkify-gh-markdown [OPTIONS] INPUT_PATH

 Add the arguments and print the result.

╭─ Arguments ─────────────────────────────────────────────────────╮
│ *    input_path      TEXT  [required]                           │
╰─────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────╮
│ --heading-level     INTEGER RANGE [1<=x<=6]                     │
│                             Set the top heading level in the    │
│                             output (1-6).                       │
│ --install-completion        Install completion for the current  │
│                             shell.                              │
│ --show-completion           Show completion for the current     │
│                             shell, to copy it or customize the  │
│                             installation.                       │
│ --help                      Show this message and exit.         │
╰─────────────────────────────────────────────────────────────────╯

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Bruno Alla
Bruno Alla

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Release files for linkify-gh-markdown 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linkify-gh-markdown 1.3.0
File Size Uploaded
linkify_gh_markdown-1.3.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linkify-gh-markdown 1.3.0
File Interpreter ABI Platform
linkify_gh_markdown-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / linkify_gh_markdown-1.3.0.tar.gz

Download URL linkify_gh_markdown-1.3.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
19a1cfeb452dd2de392ed388941e555b1072bce1ecc4e405e087018b60512316
BLAKE2b-256 checksum
How to use checksums
155629688825a6b286a40858f3ba08b2a877788127b86dca22a7a949a5cfaa61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / linkify_gh_markdown-1.3.0-py3-none-any.whl

Download URL linkify_gh_markdown-1.3.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc404fea1086f95c9b062443230cf77bb5a21c1e3c7f4d7688cd6ea44666394e
BLAKE2b-256 checksum
How to use checksums
deaa1f99c6f70586cc852c8c0cee54cff9223c42205252a938e6a6c2ed37d64a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page