Skip to content

Rustdoc mis-parses links with spaces #29483

Closed
@steveklabnik

Description

@steveklabnik

If you're using a reference-style link with a parenthetical statement after it:

//! blah blah blah [something] (also known as bar)
//!
//! [something]: whatever.html

This will ignore the reference and link to also known as bar.

CommonMark says:
http://spec.commonmark.org/0.21/#example-460

[Whitespace] is not allowed between the link text and the following parenthesis:

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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