Intra-doc links should be styled according to the kind of their target #78256
Labels
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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
the link will be blue and set in serifs; if I write
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.The text was updated successfully, but these errors were encountered: