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

前端 未结 3 1395
独厮守ぢ
独厮守ぢ 2021-01-31 06:54

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\", whi

3条回答
  •  别跟我提以往
    2021-01-31 07:19

    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"}
    

提交回复
热议问题