Skip to content

Commit

Permalink
自定义编辑markdown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
027xiguapi committed Oct 17, 2024
1 parent a6c555d commit f0ffdf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion contents/custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit f0ffdf6

Please sign in to comment.