Skip to content

Minor 1.36 rustdoc regression: \] after a link is not treated as an escape #62770

Closed
@MaulingMonkey

Description

@MaulingMonkey

A minor change in behavior between 1.35.0 and 1.36.0. Repro example here:

/// \[This escapes both brackets\]
/// \[[This escapes only the left bracket as of 1.36.0](https://www.google.com/)\]
pub fn example() {
}

Run a standard cargo doc. In 1.36.0, the link will display \] instead of ] after the link, whereas in 1.35 it will display ] after the link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions