Skip to content

rustdoc fails to treat pipe character inside code blocks properly #28251

Closed
@mdinger

Description

@mdinger

Both of these examples should look like the original when rendered as a table in rustdoc but neither do.

This:

//! Test  | Table
//! ------|-------------
//! t = b | `x | y | z`

Results in:

//! Test  | Table
//! ------|-------------
//! t = b | `x

This:

//! Test  | Table
//! ------|-------------
//! t = b | `x \| y \| z`

Results in:

//! Test  | Table
//! ------|-------------
//! t = b | `x \

This was supposed to be fixed when rust updated hoedown to 3.0.4 (#27945) but it doesn't seem to work inside code blocks. hoedown/hoedown#77 seems to have covered those cases so I'm not sure where the problem lies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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