Rustdoc: Copy Markdown link

We currently have a "copy item path to clipboard" button in pages where items are viewed (example). This button returns the item path as used by Rust (e.g. "syn::visit::visit_expr_closure"). I propose we add a button next to that one to copy a Markdown-formatted version of the link.

Copied to clipboard when clicking: "[syn::visit::visit_expr_closure](syn::visit::visit_expr_closure)"

It would be a great QOL improvement imo, and it would make linking to components in external pages such as Github, Zulip, blogs or on here much faster.

When you copy HTML containing a link tag, things like GitHub will automatically paste it into the text input as markdown. Would that work for your purposes?

I think having a input-site agnostic solution would be the best solution here

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.