zed icon indicating copy to clipboard operation
zed copied to clipboard

preview markdown support for html `<img>` tags for images

Open aaelony opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Zed does not appear to render png files that are listed in the markdown.

e.g. if png/myimage.png exists then <img src="png/myimage.png" /> should render the image in the preview.

I tested this in Zed and don't see the image. The same markdown renders the image in VSCode.

Environment

Zed: v0.165.4 (Zed) OS: Linux X11 pop 22.04 Memory: 23.3 GiB Architecture: x86_64 GPU: Intel(R) Graphics (RPL-U) || Intel open-source Mesa driver || Mesa 24.0.3-1pop1~1711635559~22.04~7a9f319

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

No response

aaelony avatar Dec 13 '24 20:12 aaelony

it should render if you use the Github-flavored markdown syntax for images instead of HTML, i.e. ![alt text](png/myimage.png)

jansol avatar Dec 14 '24 00:12 jansol

Github supports both formulations, but that's a valid work-around.

aaelony avatar Dec 14 '24 18:12 aaelony

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar May 07 '25 07:05 github-actions[bot]

Still not supported

jansol avatar May 08 '25 11:05 jansol

Hey, thanks for your issue! Should be fixed/added in the next preview release.

RemcoSmitsDev avatar Aug 31 '25 08:08 RemcoSmitsDev