自定义编辑markdown bug

This commit is contained in:
fzk
2024-10-17 09:07:34 +08:00
parent a6c555d140
commit f0ffdf6f5f
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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
+1 -1
View File
@@ -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": {