From 3d093829b94b1f10edf7fc83cdaf10a150ec1404 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 18 Feb 2025 09:37:46 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13942 --- app/src/protyle/util/editorCommonEvent.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 71748c17f..07ba648ef 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -1098,10 +1098,16 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { } let html = ""; for (let i = 0; i < ids.length; i++) { + if (ids.length > 1) { + html += "* "; + } const response = await fetchSyncPost("/api/block/getRefText", {id: ids[i]}); - html += protyle.lute.Md2BlockDOM(`((${ids[i]} '${response.data}'))`); + html += `((${ids[i]} '${response.data}'))`; + if (ids.length > 1 && i !== ids.length - 1) { + html += "\n"; + } } - insertHTML(html, protyle); + insertHTML(protyle.lute.Md2BlockDOM(html), protyle); } else if (targetElement && !protyle.options.backlinkData && targetElement.className.indexOf("dragover__") > -1) { const scrollTop = protyle.contentElement.scrollTop; if (targetElement.classList.contains("av__row")) {