用github markdown打开新选项卡中的链接,使用target =“_blank” [英] open link in new tab with github markdown using target="_blank"
问题描述
有没有办法让一个用githubs markdown编写的链接在新标签中打开?
我发现与此相关的所有帖子都建议使用HTML和 target =_ blank
,这对我来说很好,但这不起作用。
例如这个链接:
Is there a way to let a Link, written in githubs markdown, open in a new tab?
All posts I have found related to this suggests to use HTML and target="_blank"
, which is fine with me, but that doesn't work.
For example this link:
<a href="http://stackoverflow.com" target="_blank">Go</a>
不在新选项卡中打开。
我对所有类型的markdown语法的回复都不感兴趣,但只有在我在github上写下markdown的解决方案才有用。
Does not open in a new tab. I'm no interested in replies for all kind of different markdown syntaxes, but only in a solution that will work when I write my markdown on github.
推荐答案
好像看起来简单的答案是这是不可能的。即使使用纯HTML,Github也不包含目标属性,所以它不在最终的HTML Anchor标记中。令人讨厌的是,用户只需点击链接即可获得相同的行为。
Well it seems that the simple answer is "It's not possible". Github does not include the target attribute even if you use plain HTML, so it's not a in the final HTML Anchor tag. Annoying, but OK, users can just do a CTRL+click on the link, the get the same behaviour.
这篇关于用github markdown打开新选项卡中的链接,使用target =“_blank”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!