From 4f7e3795c0720a55bb2d7771832c03ac74fb5a3c Mon Sep 17 00:00:00 2001 From: seaHi Date: Wed, 23 Sep 2026 09:57:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9B=86=E6=88=90=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=92=8C=E8=A1=A8=E6=A0=BC=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E6=8F=92=E4=BB=B6=E5=88=B0=20Markdown=20=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/admin/MarkdownEditor.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/admin/MarkdownEditor.svelte b/src/lib/components/admin/MarkdownEditor.svelte index bfb46d7..225c74b 100644 --- a/src/lib/components/admin/MarkdownEditor.svelte +++ b/src/lib/components/admin/MarkdownEditor.svelte @@ -19,6 +19,8 @@ Strikethrough } from 'lucide-svelte'; import { addToast } from '$lib/stores/toast.svelte'; + import { imagePreviewPlugin } from '$lib/editor/imagePreviewPlugin'; + import { tableFormatterPlugin } from '$lib/editor/tableFormatterPlugin'; let { value = $bindable(''), @@ -118,6 +120,8 @@ base: markdownLanguage, codeLanguages: languages }), + imagePreviewPlugin, + tableFormatterPlugin, customTheme, EditorView.lineWrapping, EditorView.updateListener.of((update) => {