rustdoc: Inline code in links in first paragraph of doc of trait implementation not clickable #140857
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.
Any inline code in a link in the first paragraph of the documentation of an implementation of a trait with at least one item isn't clickable.
MRE:
I expected to see this happen:
In the documentation generated by cargo doc, both links should be clickable.
Instead, this happened:
Unless JS is disabled, clicking on the top link does nothing.
Meta
rustc --version
:The cause seems to be this event listener, which is added to the impl's summary and doesn't account for the fact that inline code is allowed inside Markdown links:
The text was updated successfully, but these errors were encountered: