From 71f0059960d66bf88ea6fe81250d631fe87ebfe2 Mon Sep 17 00:00:00 2001 From: suyao Date: Sat, 25 Oct 2025 14:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Markdown=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E6=94=AF=E6=8C=81=20HTML=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E4=BF=9D=E7=95=99=20=20=E6=A0=87=E7=AD=BE=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E4=B8=8B=E5=88=92=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/components/RichEditor/useRichEditor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/RichEditor/useRichEditor.ts b/src/renderer/src/components/RichEditor/useRichEditor.ts index 5285b7b6ea..1b9dc58d11 100644 --- a/src/renderer/src/components/RichEditor/useRichEditor.ts +++ b/src/renderer/src/components/RichEditor/useRichEditor.ts @@ -196,8 +196,9 @@ export const useRichEditor = (options: UseRichEditorOptions = {}): UseRichEditor const extensions = useMemo( () => [ Markdown.configure({ - markedOptions: { gfm: true }, - html: true // Enable HTML support to preserve tags for underline + markedOptions: { + gfm: true + } }), SourceLineAttribute, StarterKit.configure({