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.
To only convert external links (i.e. links to other domains, containing "http"),
instantiate the extension with the external_only
option set to true.
Markdown(extensions=[NewTabExtension(external_only=True)])