Skip to content

Intra-doc links do not work in markdown files #77974

Open

Description

I tried this code:

# Hello

Link to [std::process::Command]

I expected to see this happen: Rustdoc generates a link to https://doc.rust-lang.org/std/process/struct.Command.html

Instead, this happened: Rustdoc writes the literal text [std::process::Command]

This might be a little tricky because there is no scope to resolve in. I think ideally this would have the same scope as an empty crate with only the std injects (extern crate std; use std::prelude::v1::*;).

Noticed this in #77971.

Meta

rustdoc --version:

rustdoc 1.49.0-nightly (91a79fb29 2020-10-07)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameA-markdown-parsingArea: Markdown parsing for doc-commentsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions