Skip to content

Rustdoc hyperlinks should open in a new tab #20076

Closed
@tivervac

Description

@tivervac

I was reading the docs and noticed that all of the links open in the current tab. As MarkDown is used, new tabs aren't natively available but MarkDown does support raw html.
i.e. instead of writing (in guide.md)
<a href="https://github.com/rust-lang/rust#building-from-source">building Rust from Source</a>
We could write
<a href="https://github.com/rust-lang/rust#building-from-source" target="_blank">building Rust from Source</a>
This will open links in new tabs and won't take us away from the guide (or whatever documentation) we were reading.

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