Open alimd opened 12 years ago
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>
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
However, it does work properly if the body of the link isn't a full URL: example
Ahh, interesting. I guess that makes sense.
Would adapting the “Kramdown extension” to use [link](URL){options} be an option?
@paulmenzel now working in github
@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"}
Same @trliner, from what I've read, multiple people have had to revert that fix because github flavor markdown doesn't support it.
The issue is still open since 23 Nov 2012
Looks like it is not working...
<a href="http://stackoverflow.com" target="_blank">Go</a>
Same problem with my README. The raw Markdown has the HTML but it's being scrubbed off somehow when it's rendered.
I wonder how come this simple feature issue is open since 2012 (4+ years seriously???).
And before finding out this issue being reported here, I was giving syntax check again and again to kramdown ...
Wish Github starts supporting this feature
So its now August and I am gonna keep talking about this. Why is there no solution to this ? @github
Same here, even entering plain HTML with target='_blank'
set does not work.
Github doesn't implement new custom extensions to Markdown format and looks towards CommonMark. I think that https://github.com/commonmark/CommonMark/pull/105 should be approved and merged into CommonMark specification first, then Github would implement this common specification in GFM.
Wow, it blows my mind that there isn't a simple way to do this. Who doesn't find it annoying when tabs open in the same window? That should not even be the default behavior. Worse, it is apparently something that can't even be remedied right now. Sad.
This is really sad
Also have a need for this.
Same here
Ditto
+1
Bump.
+1
holy heck, guys, github leaves dis issue for SO LONG! whoa! plus, I have the same problem
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
still waiting on this....
why? this is as old as the whole www..... Why is implementing a target such a problem?
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
{:+1="_one_more_year"}
+1
+1
how can add target="_blank" to markdown links
[test](http://test.com)
in github?!