From 9b25921c8c0fe383eebdc341f5865124b5bb5db5 Mon Sep 17 00:00:00 2001 From: Berkov Date: Sat, 11 Jul 2026 14:30:19 +0300 Subject: [PATCH] add opus and webp format --- src/conf/regex.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conf/regex.ts b/src/conf/regex.ts index d91af0b..e968e50 100644 --- a/src/conf/regex.ts +++ b/src/conf/regex.ts @@ -34,12 +34,12 @@ export class Regex { // Supported images https://publish.obsidian.md/help/How+to/Embed+files this.wikiImageLinks = - /!\[\[(.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff)).*?\]\]/gim; + /!\[\[(.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff|webp)).*?\]\]/gim; this.markdownImageLinks = - /!\[\]\((.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff)).*?\)/gim; + /!\[\]\((.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff|webp)).*?\)/gim; this.wikiAudioLinks = - /!\[\[(.*\.(?:mp3|webm|wav|m4a|ogg|3gp|flac)).*?\]\]/gim; + /!\[\[(.*\.(?:mp3|webm|wav|m4a|ogg|3gp|flac|opus)).*?\]\]/gim; // https://regex101.com/r/eqnJeW/1 this.obsidianCodeBlock = /(?:```(?:.*?\n?)+?```)(?:\n|$)/gim; @@ -96,6 +96,6 @@ export class Regex { this.singleClozeHighlight = /((?:==)(.+?)(?:==))/g; // Matches any embedded block but the one with an used extension from the wikilinks - this.embedBlock = /!\[\[(.*?)(?