Search code examples
htmlmarkdowngithub-flavored-markdown

Is it possible to create links with 'target=“_blank”' with GitHub Flavored Markdown?


Is it possible to create links that open in a new tab in GitHub Flavored Markdown like this <a href="https://www.example.com" target="_blank">test</a> . If so, How would I be able to do this?


Solution

  • Looking at this answer here it seems that this is not possible, as Github does not include the target attribute even in plain HTML.

    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.