-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open link in new page #28
Comments
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:
|
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: |
Ahh, interesting. I guess that makes sense. |
Would adapting the “Kramdown extension” to use [link{options}](http://kramdown.gettalong.org/syntax.html) be an option? |
@paulmenzel now working in github |
Same @trliner, from what I've read, multiple people have had to revert that fix because github flavor markdown doesn't support it. |
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")
The issue is still open since 23 Nov 2012 |
Looks like it is not working...
|
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 ? |
Same here, even entering plain HTML with |
Github doesn't implement new custom extensions to Markdown format and looks towards CommonMark. I think that commonmark/commonmark-spec#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! |
+1 |
commenting here will:
commenting here will not:
|
+1 to @KTibow However, I also feel this is the wrong repository. @mojombo can you confirm? The official discussion forum is here - https://github.com/orgs/community/discussions |
already opened suggestion: https://github.com/orgs/community/discussions/38634 |
I often end up here looking for a solution for the same problem and realise that there is no solution for this till now, forget it and continue my work |
-1 to implementing this. As a user, I absolutely hate it. It is a pox on mankind. |
-1 to you |
@nexushoratio You did not mention why. |
As a user, I know how to open links in new windows/tabs. Generally a simple middle-click. But, I have a choice. I may want to follow a link in the current window/tab. It is not unusual for me to click a link to have it forcibly open in a new context. So I then have to close the current one and navigate to the new one. My choice was taken away from me. There are few scenarios where opening a new window/tab by default makes sense. Help on a form is probably the biggest. And I don't think Markdown supports much in the way of forms. |
you can still open it in the current tab if you want:
|
Probably, you should fill report to browsers. If they have support for middle mouse button or ctrl+lmb for forcing a new tab, probably they should have some key bindings for forcing the current tab, like alt-lmb, ctrl-mmb or something. |
Given the links i provide are to external tools to support the walkthroughs and courses, it is still annoying 13 years later .... |
Happy New Year everyone it's "almost" 2024 🥳🎊Fun Facts:
|
It's hard for me to believe GTA V came out after this issue and GTA VI will be released before this issue is ever fixed 🤯 |
Add the screen recording to the README.md file as an image displaying a screenshot of the recording that links to https://asciinema.org where the screen recording can be played. The screen recording itself cannot be embedded in the README.md because GitHub does not allow `script` HTML tags. The link cannot be opened in a new tab because GitHub Markdown does not support it. See mojombo/github-flavored-markdown#28 Using `svg-term-cli` to create an animated SVG does not work, because it does not play smoothly and does not use the settings applied to the cast on asciinema.org. Update dictionary for VS Code workspace to fix spelling errors. Issues: #11
Add the screen recording to the README.md file as an image displaying a screenshot of the recording that links to https://asciinema.org where the screen recording can be played. The screen recording itself cannot be embedded in the README.md because GitHub does not allow `script` HTML tags. The link cannot be opened in a new tab because GitHub Markdown does not support it. See mojombo/github-flavored-markdown#28 Using `svg-term-cli` to create an animated SVG does not work, because it does not play smoothly and does not use the settings applied to the cast on asciinema.org. Update dictionary for VS Code workspace to fix spelling errors. Issues: #11
This has to be the oldest and most annoying issue I've ever seen. I won't be surprised if I come back again searching for this next year. |
I'm leaving my mark in history (at least in this goddamn issue thread). |
Waiting 1 Million years |
I will check my comment in the next birth while this issue persists. |
Doom-scrolling this issue is my new favorite pass time hobby. |
I know this won't change it... funny how I've been adding a target with no effect for years on GitHub. FML. |
how can add target="_blank" to markdown links
[test](http://test.com)
in github?!The text was updated successfully, but these errors were encountered: