Open markdown link in new tab

April 20, 2017

Linking in markdown is a fairly simple. You can add a HTML directly with the target attribute. But if you are using Jekyll, you add the text in square brackets and enclose the link in parenthesis with additional target syntax like mentioned below.

For Jekyll

[text-to-highlight](actual-link){:target="\_blank"}

For others

<a href="http://example.com/" target="_blank">Hello, world!</a>


Freelance Web Developer. Writes about Technology and Travel.twitterlinkedinemail