Markdown Extension to add target="_blank" to all links.
Project description
markdown-newtab
This extension modifies the HTML output of Python-Markdown to open all
links in a new tab by adding target="_blank"
. See run_tests.py
for
example usage.
Updated to work on Markdown 3.0+.
pip install markdown3-newtab
Usage
from markdown import Markdown
Markdown(extensions=[NewTabExtension()])
or
from markdown import Markdown
Markdown(extensions=[markdown3-newtab])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdown3_newtab-0.2.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for markdown3_newtab-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4379eee3a8b4ced2908c7826a05ab3d87f3c36dbf90fca7e02bbe225d454502b |
|
MD5 | 76e1d81ae048fb8b14fe2887e33cd34f |
|
BLAKE2b-256 | fbe4717af1542cbd58a7a73bfbc37f17b26b1e754b399fb505c930018cb2883e |