open link in new page #28

Open
AliMD opened this Issue Nov 23, 2012 · 8 comments

Projects

None yet

6 participants

@AliMD

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

@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. 😞

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.

@paulmenzel

Would adapting the “Kramdown extension” to use [link](URL){options} be an option?

@AliMD

@paulmenzel now working in github

@trliner

@AliMD I'm having a hard time getting that to work. What am I doing wrong?

[test](http://test.com){:target="_blank"} renders as test{:target="_blank"}

@chennighan
chennighan commented Jun 9, 2016 edited

Same @trliner, from what I've read, multiple people have had to revert that fix because github flavor markdown doesn't support it.

@NDuma NDuma added a commit to NDuma/oculus-rating-data that referenced this issue Jun 22, 2016
@NDuma NDuma Update Example Link
Charts / Flot on TwentyMilliseconds now points to specific post.
 - 'Trialing' "New - Tab" functionality -> (Does not appear to be supported in either html or gitmkdn here > contrary to 4 StackEx tabs + 1 Git "mojombo/github-flavored-markdown#28")
6a80e65
@NDuma NDuma referenced this issue in kevinburke/oculus-rating-data Jun 22, 2016
Open

Update Example Link #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment