External LinkΒΆ
Processor name: external-link
This processor will find any external links (links that start with http:
, https:
, mailto:
, etc.), and will create a HTML link with the target
attribute set to "_blank"
.
This allows external links in Markdown to be opened in a new tab.
The default HTML for external links is:
<a href='{{ link_path }}{{ link_query }}' target="_blank">{{ text }}</a>
Using the following example tag:
Check out this [website](https://www.google.com).
The resulting HTML would be:
<p>Check out this <a href="https://www.google.com" target="_blank">website</a>.</p>