0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00
astro/.changeset/clever-rice-compete.md
PolyWolf 509fa671a1
feat: Add CSS variables in getImage for experimental.responsiveImages (#13256)
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>
2025-02-26 10:16:21 +00:00

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.