Inconsistent link underlining in [՝Smth՝] vs <code>[Smth]</code> (regression in nightly?) #133484
Labels
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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`]
, thenSmth
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]<dyn [Error] + [Send] + [Sync]></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 :)
The text was updated successfully, but these errors were encountered: