From da6fb103b8fe18db07ab706586b77f6813bc0c50 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 1 Nov 2024 16:48:18 +0800 Subject: [PATCH] chore: update paste config --- web/core/lib/editor/extensions/advice/advice-view.tsx | 4 +++- web/core/package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/core/lib/editor/extensions/advice/advice-view.tsx b/web/core/lib/editor/extensions/advice/advice-view.tsx index b886434..2fad434 100644 --- a/web/core/lib/editor/extensions/advice/advice-view.tsx +++ b/web/core/lib/editor/extensions/advice/advice-view.tsx @@ -80,7 +80,9 @@ export const AdviceView = ({ editor }: AdviceViewProps) => { className='rounded-md bg-white/10 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-white/20' onClick={() => { const originalSelection = editor.state.selection; - const markdownParser = new MarkdownParser(editor, {}); + const markdownParser = new MarkdownParser(editor, { + html: true, + }); const markdownNode = markdownParser.parse(advice.content) editor.chain().focus()?.deleteRange({ diff --git a/web/core/package.json b/web/core/package.json index 6836cad..964b5e2 100644 --- a/web/core/package.json +++ b/web/core/package.json @@ -1,6 +1,6 @@ { "name": "@studio-b3/web-core", - "version": "0.8.7", + "version": "0.8.8", "type": "module", "main": "dist/main.js", "types": "dist-types/main.d.ts",