Hyperlink in MD file #24030
-
Hello World! I would like to add a link to my MD file of : I’m using this syntax : ``` However the user clicking the link kills the Github page and it opens a new page, which is a really bad web UX… Anyone has an idea to fix this? Thanks you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👋 Welcome! If this is the same issue as here:
Sorry to create a new post about this but the issue seems very old and was posted in many places (eg. mojombo/github-flavored-markdown#28) and I could not find a way to make target="_blank" work in a html link yet. I do not like that users leave the github page when clicking such link and would prefer that they get a new tab to see the result. My example would be like this: blah blah <a href="http://htmlpreview.github.com/?https://github.com/<repo>/<path>/blob/master… I’m afraid the answer remains the same. At present there is no way to force a link in a markdown file on GitHub to open in a new tab/window. The person clicking will have to decide that for themselves. |
Beta Was this translation helpful? Give feedback.
-
Thank you canuckjacq for your feedback. |
Beta Was this translation helpful? Give feedback.
👋 Welcome!
If this is the same issue as here: