# Fix auto size rendering of SVG images in Markdown \(\#36663\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fe0ab30e8fcdd66402131925c05fd38472d877ee)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fe0ab30e8fcdd66402131925c05fd38472d877ee

Requested commit: fe0ab30e8fcdd66402131925c05fd38472d877ee

Commit: fe0ab30e8fcdd66402131925c05fd38472d877ee

Tree: 53b485beb0bd9478f6b51e7165c23ed944537f23

Author: Jason Lee

Committer: GitHub

## Message

````
Fix auto size rendering of SVG images in Markdown (#36663)

Release Notes:

- Fixed auto size rendering of SVG images in Markdown.

## Before

<img width="836" height="844" alt="image"
src="https://github.com/user-attachments/assets/0782e17e-620f-4c29-a5bc-a2ffe877d220"
/>
<img width="691" height="678" alt="image"
src="https://github.com/user-attachments/assets/dbe2dd5f-fd5b-48f9-bd09-0ee35e116aec"
/>


## After

<img width="873" height="1015" alt="image"
src="https://github.com/user-attachments/assets/59cbb69f-6a81-43cb-989f-3bcea873d81e"
/>
<img width="647" height="598" alt="image"
src="https://github.com/user-attachments/assets/11b67d8e-2b6c-4245-ad13-d4616fdabf22"
/>

For GPUI example

```
cargo run -p gpui --example image
```

<img width="1212" height="740" alt="SCR-20250821-ojoy"
src="https://github.com/user-attachments/assets/62bb2847-c533-4c4d-b5f7-c9764796262a"
/>
````

## Parents

- [253765aaa1f15d45e2effe098222d07550fdf0e9](https://git.cafe/gitcafe/zed/commit/253765aaa1f15d45e2effe098222d07550fdf0e9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fe0ab30e8fcdd66402131925c05fd38472d877ee?format=markdown)
