open link in new tab with github markdown using target=“_blank”

和自甴很熟 提交于 2019-12-03 01:04:14

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.

The answer should be what @Idavid posted in a comment.

[go](http://stackoverflow.com){:target="_blank"}.

You should also add rel="noopener"

[go](http://stackoverflow.com){:target="_blank" rel="noopener"}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!