Skip to main content
markdown.linktarget
==================

Adds a taget="_blank" attribute to HTML links in Markdown

This extension adds a taget="_blank" attribute to the HTML output when links are parsed from markdown.
It is not added if the href starts with a # so

[link](#something)

will not be touched. Whereas:

[link_text](url) will become <p><a href="url" target="_blank">link_text</a><

Install through pip:

$ pip install MarkdownLinkTarget

To enable the MarkdownLinkTarget package and use it in your markdown generation just add it like so:

import markdown
from MarkdownLinkTarget.linktarget import TargetLinkExtension

result = markdown.markdown(textToRender, extensions=[TargetLinkExtension,]))

Metadata

Release files for MarkdownLinkTarget 0.1.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 MarkdownLinkTarget 0.1.0
File Size Uploaded Provenance
MarkdownLinkTarget-0.1.0.tar.gz 1.4 kB Without provenance Details

Release files / MarkdownLinkTarget-0.1.0.tar.gz

Download URL MarkdownLinkTarget-0.1.0.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ba4c7e074c163d8b87397dac61f8d75f2b7338d66628bbd9dacf33c8cfdbf85b
BLAKE2b-256 checksum
How to use checksums
2123c5d34235da8e56dbc7f0f013555bd514411dc44bfc07510e3baae41e0383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for MarkdownLinkTarget 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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