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
Built Distribution
File details
Details for the file markdown3_newtab-0.2.0.tar.gz
.
File metadata
- Download URL: markdown3_newtab-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481d2cbaf392b1d86f835d9c5aa606ace235f533d4ad0b283c90454c714e5db2 |
|
MD5 | 85e775be8e5db2bb3808248fc68fe6ce |
|
BLAKE2b-256 | 9e75cb121b7b01973e59233e5ae183b5f20f69f77e1076b8b0e99b83af1d4f20 |
File details
Details for the file markdown3_newtab-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: markdown3_newtab-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4379eee3a8b4ced2908c7826a05ab3d87f3c36dbf90fca7e02bbe225d454502b |
|
MD5 | 76e1d81ae048fb8b14fe2887e33cd34f |
|
BLAKE2b-256 | fbe4717af1542cbd58a7a73bfbc37f17b26b1e754b399fb505c930018cb2883e |