Skip to content

Add ability to open markdown links in new tab #2679

@KDean-Dolphin

Description

@KDean-Dolphin

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

No one assigned

    Labels

    good first issueEasier issue for first time contributorshelp wantedContributions are especially encouraged

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions