Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

open link in new page #28

Open
AliMD opened this Issue · 3 comments

3 participants

@AliMD

how can add target="_blank" to markdown links [test](http://test.com)

@skeggse

It seems unlikely that this will ever become a feature of markdown or gfm.

That said, you can use standard HTML to add a link that targets a new window/tab:

<a href="http://example.com" target="_blank">http://example.com</a>

http://example.com

@trliner

Hmm, your example link rendered as:

<a href="http://example.com" target="_blank"></a>
<a href="http://example.com">http://example.com</a>

So clicking the visible link doesn't actually open the URL in a new window. :disappointed:

However, it does work properly if the body of the link isn't a full URL:
example

@skeggse

However, it does work properly if the body of the link isn't a full URL:
example

Ahh, interesting. I guess that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.