Closed
Description
Search Terms
markdown link target _blank
Problem
The sourceLinkExternal option allows me to open links in a new tab when generating HTML. I would like to see a similar option for links in the markdown itself.
Suggested Solution
Markdown links are, as designed, processed by markdown-it. However, it's possible to add a target="_blank"
to all links through the use of a custom renderer. This should be enabled through an option in the generator.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
KDean-Dolphin commentedon Aug 20, 2024
To add to this, now that I've converted all my links to use
@link
instead, this ability would be nice for any@link
that is a URL.Gerrit0 commentedon Aug 23, 2024
TypeDoc renders
@link
to markdown before passing it to markdown-it, so the one option will pick up both casesAdd markdownLinkExternal option