mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com> Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com> Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
948 B
948 B
astro |
---|
patch |
Adds experimental responsive image support in Markdown
Previously, the experimental.responsiveImages
feature could only provide responsive images when using the <Image />
and <Picture />
components.
Now, images written with the ![]()
Markdown syntax in Markdown and MDX files will generate responsive images by default when using this experimental feature.
To try this experimental feature, set experimental.responsiveImages
to true in your astro.config.mjs
file:
{
experimental: {
responsiveImages: true,
},
}
Learn more about using this feature in the experimental responsive images feature reference.
For a complete overview, and to give feedback on this experimental API, see the Responsive Images RFC.