zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.87k stars 2.68k forks source link

Images in hover documentation #15462

Open valentinegb opened 1 month ago

valentinegb commented 1 month ago

Check for existing issues

Describe the feature

It would be quite nice if Zed showed images in hover documentation. For example, I have the following documentation for a Rust constant:

/// ![](https://cdn.discordapp.com/emojis/1263605189995266058.gif?quality=lossless)
#[cfg(debug_assertions)]
pub(crate) const A_FLOOF_LOAD: &str = "<a:afloofLoad:1263605189995266058>";

Which when built with cargo doc, renders like this:

Screenshot 2024-07-29 at 10 37 01 PM

However, when hovering over the constant in Zed, it currently looks like this:

Screenshot 2024-07-29 at 10 40 52 PM

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

Related issue to add inline image support to Markdown Preview:

valentinegb commented 1 month ago

Related issue to add inline image support to Markdown Preview:

Oh whoops, I actually thought images were already supported in Zed's Markdown previews!