Implement rendering of images with data urls in markdown (#30322)
Fixes #28266  Release Notes: - Added support for rendering images with data URLs in markdown. This can show up in hover documentation provided by language servers. Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
c512d43e8c
commit
29c31f020e
9 changed files with 131 additions and 42 deletions
|
@ -57,11 +57,7 @@ impl ImageView {
|
|||
};
|
||||
|
||||
// Convert back to a GPUI image for use with the clipboard
|
||||
let clipboard_image = Arc::new(Image {
|
||||
format,
|
||||
bytes,
|
||||
id: gpui_image_data.id.0 as u64,
|
||||
});
|
||||
let clipboard_image = Arc::new(Image::from_bytes(format, bytes));
|
||||
|
||||
Ok(ImageView {
|
||||
clipboard_image,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue