From 7cf196c40614d6fd0dcff953885c6d65bcb5a0c8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 9 Aug 2023 11:13:46 +0800 Subject: [PATCH] :bug: The pasted code block cannot be automatically recognized Fix https://github.com/siyuan-note/siyuan/issues/8934 --- app/src/protyle/util/processCode.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/protyle/util/processCode.ts b/app/src/protyle/util/processCode.ts index 9590065bb..6ee9134f9 100644 --- a/app/src/protyle/util/processCode.ts +++ b/app/src/protyle/util/processCode.ts @@ -32,16 +32,8 @@ export const processPasteCode = (html: string, text: string) => { if (isCode) { let code = text || html; if (/\n/.test(code)) { - return `