From 187f5d116ff13892a0012d608b8522eb3fecd028 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Mon, 9 Mar 2026 03:47:21 +0100 Subject: [PATCH] fix: resolve ESLint and formatting issues for CI compliance --- src/transformer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transformer.ts b/src/transformer.ts index d73d54d..aee10ce 100644 --- a/src/transformer.ts +++ b/src/transformer.ts @@ -72,7 +72,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null `, } : null; - case "video": + case "video": { if (!opts.videoComponent) return null; // Check if it's a YouTube video const youtubeMatch = url.match( @@ -80,7 +80,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null ); if (youtubeMatch && youtubeMatch[1]) { const videoId = youtubeMatch[1].split("&")[0]; // Remove additional parameters - const playlistMatch = url.match(/[?&]list=([^#\&\?]*)/); + const playlistMatch = url.match(/[?&]list=([^#&?]*)/); const playlistId = playlistMatch ? playlistMatch[1] : null; return { @@ -104,6 +104,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null `, }; } + } case "pdf": return opts.pdfComponent ? {