Closed tuhuynh27 closed 2 years ago
oh that's right, sorry, will look into this
it uses unifiedjs under the hood btw (rehype remark) so maybe there's a related plugin or we can use one of the current plugin (there's one that rewrite relative links, guess it can also be used for this)
I think this is quite simple and could be a good first issue! We already have logic to alter the links in markdown files, so all we need is focus on this line:
and instead of doing nothing (return), we should add the "target" attribute to the current node.
Two notes:
Current: Links in markdown files open in the same tab. Expected: I think it's better if links in markdown files default to open in a new tab.