How to target="_blank" in .md?

In case someone is interested to add target='_blank' to external links only.

You can enable blackfriday.hrefTargetBlank=true.

[blackfriday]
  plainIDAnchors = true
  hrefTargetBlank = true

Sadly, shortcode ref/relref link can no longer be used as the link will be generated with target='_blank' as well.

You can use markdown reference link.

[External link with _target blank](http://www.google.com)
[Internal Page](/posts/my-page/)
[Internal Page using reference][my-page]

[my-page]: /posts/my-page/
2 Likes