Skip to content

Intra-doc links should be styled according to the kind of their target #78256

Open
@dfoxfranke

Description

@dfoxfranke

Rustdoc generally has fairly consistent ways of styling documentation items. For example, in the default Light theme, structs are magenta, traits are lavender, functions and methods are gold, etc., and are always set in a sans-serif or monospace font. However, this convention does not seem to get applied to intra-documentation links.

Right now, if I write

/// [Result]

the link will be blue and set in serifs; if I write

/// [`Result`]

it'll be blue and set in monospace.

It would be more attractive and consistent for [Result] to be set in magenta sans-serif, and [`Result`] to be set in magenta monospace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameA-rustdoc-uiArea: Rustdoc UI (generated HTML)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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