Skip to content

rustdoc: awkward indent when heading is first item in docblock #92975

Closed
@jsha

Description

@jsha

On pages like https://doc.rust-lang.org/nightly/std/index.html, where the first item in the docblock is a heading, there is an awkward indent to that heading:

image

This is intentional (#45450), but we should find another way to do this that doesn't disrupt the visual flow of the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)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