Support enlarge Image in Modal when user Click #485
Replies: 3 comments 3 replies
-
I don't think this is required behaviour by the Astro framework itself. Markdown is just compiled down to HTML structure, in that sense, this is normal behaviour. It could be a solution to use MDX or a framework / component and hookup a plugin that takes care of this, or add an |
Beta Was this translation helpful? Give feedback.
-
related withastro/starlight#1220 |
Beta Was this translation helpful? Give feedback.
-
You can use PhotoSwipe for that. Generally, this is for a whole image gallery, but it has an option to just open for one single image at a time. You can use the built-in image optimization and it works with ViewTransitions as well. |
Beta Was this translation helpful? Give feedback.
-
Summary
I think current image in markdown only show the image, but sometimes the image is too small. I want to click it to open the origin image in modal(like notion), but it isn't support.
Background & Motivation
It can be useful for user to deploy a blog.
Goals
A nice framework!
Example
Beta Was this translation helpful? Give feedback.
All reactions