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,]))
==================
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,]))
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file MarkdownLinkTarget-0.1.0.tar.gz.
File metadata
- Download URL: MarkdownLinkTarget-0.1.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4c7e074c163d8b87397dac61f8d75f2b7338d66628bbd9dacf33c8cfdbf85b
|
|
| MD5 |
7574cc6a1eafce15c7524a29e93713c8
|
|
| BLAKE2b-256 |
2123c5d34235da8e56dbc7f0f013555bd514411dc44bfc07510e3baae41e0383
|