Skip to content

Add support for the keys "target" and "rel" in inline_attrs  #820

Description

@JonZeolla

Describe the feature you'd like to request

I would like to be able to create a link that, when clicked, opens in a new tab.

I found that in the documentation, "only certain key-value attributes are supported for each syntax".

Describe the solution you'd like

I would like [here](example.md){target="_blank" rel="noreferer noopener"} to work.

Describe alternatives you've considered

My workaround is to directly use <a href="example.html" target="_blank" rel="noreferer noopener">

Activity

  1. lsteeger commented on May 28, 2024

    @lsteeger

    Using: myst-parser 3.0.1

    While the implementation of myst_links_external_new_tab = True addresses external links, it does not address
    the OP's request.

    [here](example.md){target="_blank" rel="noreferer noopener"}
    

    The OP enhancement request has not really been addressed for an internal link reference.

    Please re-open this issue and consider expanding support to all link types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions