mojombo / github-flavored-markdown

GitHub's Flavor of Markdown
187 stars 81 forks source link

open link in new page #28

Open alimd opened 12 years ago

alimd commented 12 years ago

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

skeggse commented 11 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>

http://example.com

trliner commented 10 years ago

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 commented 10 years ago

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 commented 9 years ago

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

alimd commented 9 years ago

@paulmenzel now working in github

trliner commented 9 years ago

@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 commented 8 years ago

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

RichardHightower commented 8 years ago

test

DenysVuika commented 8 years ago

The issue is still open since 23 Nov 2012

gautamkrishnar commented 8 years ago

Looks like it is not working...

<a href="http://stackoverflow.com" target="_blank">Go</a>
datapolitan commented 8 years ago

Same problem with my README. The raw Markdown has the HTML but it's being scrubbed off somehow when it's rendered.

exexzian commented 8 years ago

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

Nerajno commented 7 years ago

So its now August and I am gonna keep talking about this. Why is there no solution to this ? @github

0xFFrancesco commented 7 years ago

Same here, even entering plain HTML with target='_blank' set does not work.

grv87 commented 7 years ago

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.

seneca-wolf commented 7 years ago

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.

SvenJedeck commented 7 years ago

This is really sad

redhatstuart commented 7 years ago

Also have a need for this.

coderberry commented 7 years ago

Same here

juanroldan1989 commented 7 years ago

Ditto

gabrielnieves18 commented 7 years ago

+1

elijah-io commented 7 years ago

Bump.

Zarquan commented 7 years ago

+1

ghost commented 7 years ago

holy heck, guys, github leaves dis issue for SO LONG! whoa! plus, I have the same problem

JamesAndersonJr commented 7 years ago

+1

Marcial1234 commented 7 years ago

+1

albertpeiro commented 7 years ago

+1

jamesjwilson commented 7 years ago

+1

brainthinks commented 7 years ago

+1

174n commented 7 years ago

+1

nirantak commented 7 years ago

+1

johannbarbie commented 7 years ago

+1

wldhg commented 7 years ago

+1

VolkmarR commented 7 years ago

+1

brgaines commented 7 years ago

+1

SkyHustle commented 7 years ago

still waiting on this....

nullsibnelf commented 7 years ago

why? this is as old as the whole www..... Why is implementing a target such a problem?

jasonmimick commented 7 years ago

+1

TakingItCasual commented 7 years ago

+1

jayliu50 commented 7 years ago

+1

Michael-Schaer commented 7 years ago

+1

roberto910907 commented 7 years ago

+1

nuhkoca commented 7 years ago

+1

joelzamboni commented 7 years ago

+1

shushugah commented 7 years ago

+1

Kaisky commented 7 years ago

+1

NetSensors commented 7 years ago

+1

IeiuniumLux commented 7 years ago

{:+1="_one_more_year"}

CaptainDredge commented 7 years ago

+1

jonsgity commented 7 years ago

+1