Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Markdown assumes image is AVIF#232

Merged
johnfraney merged 1 commit into
mainfrom
231-bug-markdown-processor-assumes-image-is-avif
Nov 25, 2025
Merged

fix: Markdown assumes image is AVIF#232
johnfraney merged 1 commit into
mainfrom
231-bug-markdown-processor-assumes-image-is-avif

Conversation

@johnfraney

Copy link
Copy Markdown
Contributor

Fixes an assumption in the Markdown image code that assumed an image was AVIF when it could also be WEBP

Tested locally with the docs site and confirmed that the WEBP HTML is looking good:

<picture>
  <source
    srcset="/images/blurry-init-screenshot-285.webp 285w, /images/blurry-init-screenshot-360.webp 360w, /images/blurry-init-screenshot-640.webp 640w, /images/blurry-init-screenshot-768.webp 768w, /images/blurry-init-screenshot-1024.webp 1024w, /images/blurry-init-screenshot-1107.webp 1107w"
    sizes="(max-width: 285px) 285px, (max-width: 360px) 360px, (max-width: 640px) 640px, (max-width: 768px) 768px, (max-width: 1024px) 1024px, 1107px"
    type="image/webp"><img alt="Screenshot of the website created with Blurry's init command"
    src="/images/blurry-init-screenshot.webp" loading="lazy" width="1107" height="318">
</picture>

Fixes an assumption in the Markdown image code that assumed an image was
AVIF when it could also be WEBP
@johnfraney johnfraney merged commit eaa3743 into main Nov 25, 2025
5 checks passed
@johnfraney johnfraney deleted the 231-bug-markdown-processor-assumes-image-is-avif branch November 25, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant