Skip to content

Setting links to open in new tabs is not working #1958

@nocode99

Description

@nocode99

mkdocs version: 1.0.4
python version: 3.7.0

mkdocs extension:

# Markdown extensions
markdown_extensions:
  - admonition
  - codehilite
  - smarty
  - meta
  - toc:
      permalink: True
  - markdown_include.include:
      base_path: docs

Something like [Title](https://github.com){.new-tab} just renders as Title{.new-tab}

Here is a snippet of the html that is generated:

<p><a href="https://github.com">Title</a>{.new-tab}</p>

I've also tried using {target=_blank} with similar behavior as above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions