Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 0981496

Browse files
authored
Support webp images
1 parent 1f594b6 commit 0981496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/Constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export const MarkdownBreakerRules = Object.freeze({
383383

384384

385385
export const MediaExtensions = Object.freeze({
386-
IMAGE: ['bmp', 'png', 'jpg', 'jpeg', 'gif', 'svg'],
386+
IMAGE: ['bmp', 'png', 'jpg', 'jpeg', 'gif', 'svg', 'webp'],
387387
VIDEO: ['mp4', 'webm', 'ogv'],
388388
AUDIO: ['mp3', 'wav', 'm4a', '3gp', 'flac', 'ogg', 'oga']
389389
});
@@ -570,4 +570,4 @@ export const DATAVIEW_UPDATER_OPERATIONS = Object.freeze({
570570
/* Bar status actions */
571571
export const EMITTERS_BAR_STATUS = Object.freeze({
572572
UPDATE: "bar-status:update",
573-
});
573+
});

0 commit comments

Comments
 (0)