Gif Support in MDX File #2743
theDeal
started this conversation in
Feature Requests
Replies: 1 comment
-
Hi @theDeal! Thanks for the feedback. What happens currently when you use a GIF in an MDX file? I’d expect this to work, but maybe something in Astro’s asset handling is behaving unexpectedly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.30.3
What is your idea?
Currently, Astro Starlight provides robust support for images, videos, and other media types in MDX files. However, there is no native support for displaying GIFs, which are commonly used for animations and dynamic content in modern web development. Adding support for GIFs in MDX files would enhance the multimedia capabilities of Astro Starlight, allowing developers to include animated content seamlessly.
Why is this feature necessary?
Use Case:
Do you have examples of this feature in other projects?
Right now, I'm using a workaround by placing GIFs in the
public
folder and rendering them directly with the<img>
tag. While this works, it's not the most efficient solution for page load times. Every GIF needs to be manually copied to thepublic
directory, and each time the page loads, the GIFs are fetched as static assets, which can increase the overall page size and slow down performance. A native GIF support in MDX would streamline this process, ensuring that GIFs are handled more efficiently, reducing unnecessary file transfers and improving load times.Have a look here:
https://anleitung.sitzplan.digital/de/mitmachen/feedback/
Participation
Beta Was this translation helpful? Give feedback.
All reactions