markdownit-module icon indicating copy to clipboard operation
markdownit-module copied to clipboard

Link open in new tab

Open jomellelastrilla opened this issue 4 years ago • 3 comments

How to make links to open in new tab or window?

jomellelastrilla avatar Jun 08 '21 14:06 jomellelastrilla

I'm currently looking for that too, I guess a combination of https://github.com/nuxt-community/markdownit-module/issues/16#issuecomment-362328416 and https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer will do.

cerpinn avatar Jun 09 '21 11:06 cerpinn

https://github.com/d-darwin/darwin-vue-ui/blob/main/src/mixins/linkClickRouting.js This would also work, with the same domain check.

cerpinn avatar Jun 09 '21 11:06 cerpinn

I'm tried to use https://www.npmjs.com/package/@gerhobbelt/markdown-it-attrs for this and it seems to be a good solution.

iparker avatar Oct 08 '21 06:10 iparker