Skip to content

rustdoc: some nested lists are rendered incorrectly #92971

Closed
@lo48576

Description

@lo48576

Summary

Nested markdown lists as below are not rendered as nested lists, but as single-level lists.

Works as expected:

  • stable (cargo 1.58.0 (7f08ace4f 2021-11-24), rustdoc 1.58.0 (02072b482 2022-01-11))
  • beta (cargo 1.58.0-beta (7f08ace4f 2021-11-24), rustdoc 1.58.0-beta.3 (4aa9d237c 2022-01-08))

Produces unintended output:

  • nightly (cargo 1.60.0-nightly (358e79fe5 2022-01-04), rustdoc 1.60.0-nightly (1bd4fdc94 2022-01-12))

Initially reported at rust-lang/docs.rs#1594.

Source input

//! * foo
//!     + bar
//!     + baz

Expected output

  • foo
    • bar
    • baz

With cargo doc (with stable toolchain):
screenshot-2022-01-17-011919+0900

Actual output

  • foo + bar + baz

With cargo +nightly doc with nightly toolchain:
screenshot-2022-01-17-011924+0900

Metadata

Metadata

Labels

C-bugCategory: This is a bug.P-highHigh priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions