Var links = document. the URL blank and you can come back to it later. As for what I believe is the reasoning, I found this issue on github while browsing, which says that when target'blank' is used without rel'noreferrer noopener', it can present a severe security vulnerability. I was successfully using this non-jQuery code snippet injected in the Ghost site footer: He says Markdown is intended to be as easy-to-read and easy-to-write as is. Looking at this answer here it seems that this is not possible, as Github does not include the target attribute even in plain HTML. Period.īy the way, here’s a good article about why external links should open in a new tab: Why External Links Should Open in New Tabs Most users and a lot of webmasters expect external links to open in a new tab. I don’t agree with that stance because it is a technology push without taking the user experience into account, which is shortsighted and obnoxious. I personally don’t care how links in HTML and Markdown were initially intended to work and that they “should” never open in a new tab. I’d like to get an actual workaround from the community. Please, do not close this blog post with the same kind of response. PS: I noticed that some of the posts around this topic were closed by admins, stating that links should never open in a new tab, using some old blog posts around the topic dating as far back as 1999 to prove their point. How To Force a New Target Blank When Clicking A GFM Hyperlink Solution The Code Break It Down Summation Live Last Subtitle Support Patreon Note. The current version of Markdown seems to overrule attempts to manually create links likeĭoes anyone know if there is a way to overrule this, without using Javascript? If you are using GatsbyJS there is a plugin that automatically adds targetblank to external links in your markdown. The README file almost certainly will be written using Markdown. The Markdown Guide teaches you how to use it. If you haven’t seen any markdown document yet, just head over to GitHub and enter any open-source project. Markdown makes writing on the web fast and easy. Get Started Everything you need to learn Markdown. I found some possible solutions that were posted here, but none of them seem to work on my Ghost website. Markdown Guide The Markdown Guide is a free and open-source reference guide that explains how to use Markdown, the simple and easy-to-use markup language you can use to format virtually any document. I’ve been reading the blog posts on this forum from people that had a similar question. I’d like all external links on my blog to open in a new tab.
0 Comments
Leave a Reply. |