-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for images in Markdown previews #16192
Conversation
@dovakin0007 : Does it also work using the
|
no sir |
@dovakin0007 : What is displayed in case of the |
the alt text like zed gpui image doesn't have a way to display the alt text so for now I am displaying alt text directly |
Seems like there's some test failures as well. I'm going to mark this as draft for now, once things are ready to go feel free to mark it as ready :) As for your issues with the layout, perhaps you need to add some more styling rules on the |
I haven't looked at the PR in the detail, but I assume that we will run into the same issues I encountered in #10565.
Rendering images in separate lines feels like a good enough workaround for now, but 2. definitely feels like a blocker to me. |
yeah that should work. regarding the layout we have to render the image within text StyledText can't handle images for now |
yeah I am running into the same issues that you have mentioned. |
|
still img() doesn't return error for bad request |
Adjust table length based on image size issue is no way to get image length for now |
@dovakin0007 : Are you also referring to the problem that the html logo image is not aligned correctly to the center like vscode and github does? |
Yes and if I add it and the table width does change based on the image width |
@dovakin0007 : Picking from something similar using the image dependency. Lines 74 to 78 in 9b148f3
|
|
@mikayla-maki I have done the changes let me know if anything else need to be changed |
Hi @mikayla-maki the conflict has been resolved let me know if anything else needed to be changed |
@dovakin0007 Thank you for the work! I hope this gets merged soon. |
will re open once I add fallback text for images |
Hi zed team please do review the code and let me know what are the changes need to be done and feel free to change it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience on this! I think this PR looks ready to go, I pushed some code style nits to a different PR here: #21082, so I'm going to close this one for now. But it's all the same code and commits, thank you for implementing this!
Closes #13246 Supersedes: #16192 I couldn't push to the git fork this user was using, so here's the exact same PR but with some style nits implemented. Release Notes: - Added image rendering to the Markdown preview --------- Co-authored-by: dovakin0007 <[email protected]> Co-authored-by: dovakin0007 <[email protected]>
Thank you! ❤️ |
Closes #13246
Release Notes:
added image preview for markdown
Release Notes: