Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

app_dev's avatar

About github markdown syntax for link target

Can users of Github help ?

I want the page to be run in a new tab to view the demo. Here's what I've tried for markdown (README.md) syntax.


Live Demo: [demo](https://example.com){:target="_blank"} //kramdown

Live Demo: [demo](https://example.com){target="_blank"} //markdown

Live Demo: <a href="https://example.com" target="_blank">demo</a> //html

{:target="_blank"} and {target="_blank"} It was marked as plain text by markdown.

I have read some sources. He talks about removing the target attribute. Is this true? Isn't there really a way to run it in new page?

0 likes
5 replies
newbie360's avatar

remove it because you want force all link to new tab, hardcored the target="_blank" in front-end/back-end

client simple use [demo](https://example.com)

app_dev's avatar

demo With this suggestion, the page does not open in a new tab. This can be used for the current tab.

PaulMaxOS's avatar

I believe the answer is simply: you can't. GitHub doesn't allow for links to be open in a new tab. But if anyone knows better, I'd be interested too.

2 likes
app_dev's avatar
app_dev
OP
Best Answer
Level 2

@paulmaxos Pre-made. But now seems impossible. In the past, it has been used by bad people in methods such as XSS.

Please or to participate in this conversation.