Intra-doc links using html `a` tag

⚓ rust    📅 2025-04-26    👤 surdeus    👁️ 2      

surdeus

I want to have a link inside of an inline code block. As per How to link in markdown from an inline code fragment? - Stack Overflow, it is possible using html code tag for the inline code block, and a tag for the link. However, setting the href of the a tag to an item like you would for intra-doc links does not work, instead it links to the exact text of the href directly. I came across 1946-intra-rustdoc-links - The Rust RFC Book and saw that rust: prefix was suggested for the url scheme, but it does not seem to have made the implementation. Is there any way to do this without having to type the full rustdoc generated path, which would have to be manually updated and could break anytime?

5 posts - 2 participants

Read full topic

🏷️ rust_feed