From 0ef0eab24867ef87cb4a63445deb90094059733f Mon Sep 17 00:00:00 2001 From: Junaid Pinjari Date: Sun, 30 Mar 2025 21:55:14 +0530 Subject: [PATCH] Feat: Add YouTube embed support using VIDEO_YOUTUBE_ID token --- .../chat/Messages/Markdown/MarkdownInlineTokens.svelte | 2 ++ .../chat/Messages/Markdown/MarkdownTokens.svelte | 2 ++ src/lib/utils/index.ts | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte index dc24b6dee..2a473c0e5 100644 --- a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte +++ b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte @@ -28,6 +28,8 @@ {@html html} {:else if token.text.includes(``; + } + }, { regex: /{{VIDEO_FILE_ID_([a-f0-9-]+)}}/gi, replacement: (_, fileId) =>