Registry / web-framework / mkdocs-link-marker

mkdocs-link-marker

JSON →
library0.3.0pypypi✓ verified 23d ago

mkdocs-link-marker is an MkDocs plugin designed to automatically mark external or mailto links within your documentation, enhancing user experience by visually distinguishing these links. It is currently at version 0.3.0 and maintains an active development cycle with regular updates addressing features and fixes.

pip install mkdocs-link-marker
INSTALL
IMPORT
SIG · MKDOCS-LINK-MARKER
M
mkdocs-link-marker
web-frameworkpythonv0.3.0
Install
3.0s avg
Import
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 33.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.0s · import 0.000s · 34MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

link-marker (plugin entry)
plugins: - link-marker
MkDocs plugins are configured directly in mkdocs.yml, not imported as Python symbols.

To enable the mkdocs-link-marker plugin, add `link-marker` to the `plugins` section of your `mkdocs.yml` file. You can also configure various options such as custom icons for external and mail links, a list of URLs to ignore, and extra HTML attributes for external links.

site_name: My Docs plugins: - search - link-marker: # Enable the link-marker plugin # Optional configuration: # external_icon: ' 🔗' # mail_icon: ' ✉️' # ignore_urls: ['www.example.com'] # extra_external_attrs: {'target': '_blank', 'rel': 'noopener'}
Debug
Known issues
gotchaStarting from v0.2.0, external links that are part of an image (`![alt text](https://external.link)`) are no longer marked by default. If you relied on this behavior, you might notice a change in your documentation output.
fix
This change is intentional for better user experience, as marking image links can sometimes clutter the output. No direct configuration option exists to re-enable marking these specific links.
affects: >=0.2.0
gotchaVersion 0.3.0 introduced new configuration options like `ignore_urls` and `extra_external_attrs`. Failing to configure these might lead to undesired link marking or lack of specific attributes, particularly if you need to exclude certain domains from being marked or add custom HTML attributes like `target="_blank"` and `rel="noopener"` for external links.
fix
Review the plugin's configuration options in your `mkdocs.yml`. Explicitly define `ignore_urls` for links you don't want marked and `extra_external_attrs` to add custom attributes to external links, for example:
plugins:
  - link-marker:
      ignore_urls: ['docs.example.com', 'internal.network']
      extra_external_attrs: {'target': '_blank', 'rel': 'noopener'}
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on PyPI · released Mar 4, 2026
Audit
Dependencies
mkdocsrequiredThis is an MkDocs plugin and requires MkDocs to function.
Agent activity
3 hits · last 30 days
node
2
Resources
mkdocs-link-marker — pip install mkdocs-link-marker · libregistry