Skip to content

How to set external links to open in new tabs? #63

Answered by yhatt
TheodoreChu asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheodoreChu
Comment options

Answer selected by TheodoreChu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants