Skip to content

Commit d8d7855

Browse files
authored
Merge branch 'main' into greg/rnd-5468-the-sublink-of-header-will-disappear-when-the-width-of-the
2 parents d9383ac + 1f2b7f7 commit d8d7855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/lib/images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function checkIsSizableImageURL(input: string): boolean {
6767
}
6868

6969
const parsed = new URL(input);
70-
if (parsed.pathname.endsWith('.svg')) {
70+
if (parsed.pathname.endsWith('.svg') || parsed.pathname.endsWith('.avif')) {
7171
return false;
7272
}
7373
if (!checkIsHttpURL(parsed)) {

0 commit comments

Comments
 (0)