vscode-markdown-shortcuts icon indicating copy to clipboard operation
vscode-markdown-shortcuts copied to clipboard

Add {:target="_blank"} to Toggle hyperlink

Open lgallard opened this issue 8 years ago • 5 comments

Hi @mdickin,

I'm using kramdown and I would like to add {:target="_blank"} at the end of links using yourToggle hyperlink command, to have something like this:

[Some text](https://example.com/link){:target="_blank"}

Can I achieve this with an option of your extension? If the answers is no, can you add this feature to your extension?

Thanks in advance!

lgallard avatar Oct 19 '17 04:10 lgallard

This is not currently possible with the extension. However, I could see adding a setting for "hyperlink format" that you could override to append {:target="_blank"}, would that work? I'm not sure how else to do it, as this is not typical Markdown syntax.

mdickin avatar Oct 19 '17 12:10 mdickin

It could work for me. I know it's not the standard markdown. Where can set the "hyperlink format"? I couldn't find it in the markdown or editor settings.

Thanks in advance!

lgallard avatar Oct 19 '17 14:10 lgallard

It's not currently possible. This would be an enhancement to the extension.

mdickin avatar Oct 19 '17 15:10 mdickin

It would be perfect!

Thanks!

lgallard avatar Oct 19 '17 15:10 lgallard

yep this is needed badly

mysterioux avatar Apr 07 '19 21:04 mysterioux