How to set external links to open in new tabs? #63
-
Is there a way to make external links (links to other web pages) open in new tabs?
I saw that the web app at web.marp.app does it like this, but it seems a bit complicated. Is there an easier way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For userJust use For developerIn fact, Marp Web takes the simplest way which is introduced in markdown-it documentation: https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer Try to use markdown-it-link-attributes markdown-it plugin if you want more easy way. (NOTE: I did not yet verified compatibility with Marp) |
Beta Was this translation helpful? Give feedback.
For user
Just use
<a href="https://example.com/" target="_blank"></a>
with enabling HTML in your Marp tool.For developer
In fact, Marp Web takes the simplest way which is introduced in markdown-it documentation: https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer
Try to use markdown-it-link-attributes markdown-it plugin if you want more easy way. (NOTE: I did not yet verified compatibility with Marp)