From 66048dc1bd704241b0421255f8eec77222d77c2e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 28 Aug 2023 11:13:16 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9058 --- app/src/protyle/upload/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.ts index 747a8dc7a..11188297f 100644 --- a/app/src/protyle/upload/index.ts +++ b/app/src/protyle/upload/index.ts @@ -126,7 +126,9 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => { succFileText += genAssetHTML(type, path, filename.substring(0, filename.length - type.length), filename); if (!Constants.SIYUAN_ASSETS_AUDIO.includes(type) && !Constants.SIYUAN_ASSETS_VIDEO.includes(type) && keys.length - 1 !== index) { - if (insertBlock) { + if (nodeElement && nodeElement.classList.contains("table")) { + succFileText += "
"; + } else if (insertBlock) { succFileText += "\n\n"; } else { succFileText += "\n";