We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b86567 commit 01753eeCopy full SHA for 01753ee
src/components/MarkdownImage.tsx
@@ -37,7 +37,7 @@ const MarkdownImage = ({
37
}
38
39
const fileExt = extname(transformedSrc).toLowerCase()
40
- const isAnimated = [".gif", ".apng", ".webp"].includes(fileExt)
+ const isAnimated = [".gif", ".apng", ".webp"].includes(fileExt)
41
42
return (
43
// display the wrapper as a `span` to avoid dom nesting warnings as mdx
@@ -51,6 +51,7 @@ const MarkdownImage = ({
51
loading="lazy"
52
src={transformedSrc}
53
unoptimized={isAnimated}
54
+ h="auto"
55
{...rest}
56
/>
57
</Link>
0 commit comments