From f0ffdf6f5faacb7be1f74781834a50e965a1f1e1 Mon Sep 17 00:00:00 2001 From: fzk <458813868@qq.com> Date: Thu, 17 Oct 2024 09:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BC=96=E8=BE=91ma?= =?UTF-8?q?rkdown=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contents/custom.tsx | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contents/custom.tsx b/contents/custom.tsx index 6ba3da5..8651317 100644 --- a/contents/custom.tsx +++ b/contents/custom.tsx @@ -228,16 +228,21 @@ export default function CustomOverlay() { function handleOk() { const currentDom = document.querySelector(".codebox-current") - removeCurrentDom() + if (isDownloadType == "html") { + removeCurrentDom() downloadHtml(currentDom) } else if (isDownloadType == "downloadMarkdown") { + removeCurrentDom() downloadMarkdown(currentDom) } else if (isDownloadType == "editMarkdown") { setContent(".codebox-current") + removeCurrentDom() } else if (isDownloadType == "pdf") { + removeCurrentDom() downloadPdf(currentDom) } else if (isDownloadType == "img") { + removeCurrentDom() downloadImg(currentDom) } isReady = false diff --git a/package.json b/package.json index 10c7912..85d657e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "code-box", "displayName": "__MSG_extensionName__", - "version": "0.8.3", + "version": "0.8.4", "description": "__MSG_extensionDescription__", "author": "027xiguapi. <458813868@qq.com>", "scripts": {