From 865e9f6dd00ea41224e4ed86cfb23a5da3866ae8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 5 Dec 2024 17:53:57 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13358 --- app/src/protyle/util/editorCommonEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 3373c7003..948fa89b9 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -874,7 +874,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { let html = ""; for (let i = 0; i < selectedIds.length; i++) { const response = await fetchSyncPost("/api/block/getRefText", {id: selectedIds[i]}); - html += `((${selectedIds[i]} '${response.data}')) `; + html += protyle.lute.Md2BlockDOM(`((${selectedIds[i]} '${response.data}'))`); } insertHTML(html, protyle); } else if (event.shiftKey) { @@ -1085,7 +1085,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { let html = ""; for (let i = 0; i < ids.length; i++) { const response = await fetchSyncPost("/api/block/getRefText", {id: ids[i]}); - html += `((${ids[i]} '${response.data}')) `; + html += protyle.lute.Md2BlockDOM(`((${ids[i]} '${response.data}'))`); } insertHTML(html, protyle); } else if (targetElement && !protyle.options.backlinkData && targetElement.className.indexOf("dragover__") > -1) {