Skip to main content

Markdown Extension to add target="_blank" to all links.

Project description

markdown-newtab

Build Status PyPI CC0 License

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


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)

Uploaded Source

Built Distribution

markdown3_newtab-0.2.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page