Skip to content

Inconsistent link underlining in [՝Smth՝] vs <code>[Smth]</code> (regression in nightly?) #133484

Closed
@Kijewski

Description

@Kijewski

Inconsistent link underlining in [`Smth`] vs <code>[Smth]</code> (regression in nightly?)

Location

In the generated documentation, e.g. in the documentation text of methods.

Summary

In the generated documentation, some links get underlined when you hover them, others don't.

E.g. when you write [`Smth`], then Smth does not get underlined when you hover your cursor over the link. But if you use <code>[Smth]</code> then it does. The latter variant is not often need, but it is useful e.g. if you want to link multiple trait bounds as in <code>[Box]&lt;dyn [Error] + [Send] + [Sync]&gt;</code>. It would be nice if the behavior was consistent. Either every link gets underlined or none.

On stable (1.82.0) and beta (1.83.0-beta.7), every link gets underlined1, but on cargo 1.84.0-nightly (031049782 2024-11-01) the inconsistency is present. Tested in Firefox 134 and Chrome 132.

1) which I prefer, but I guess that's beside the point :)

Metadata

Metadata

Assignees

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.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