Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-12 12:05:56 +08:00
parent 4bc9d9496e
commit 5c85f67e49
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -95,6 +95,8 @@ func ExportCodeBlock(blockID string) (filePath string, err error) {
return
}
code.Tokens = bytes.ReplaceAll(code.Tokens, []byte(editor.Zwj+"```"), []byte("```"))
writePath := filepath.Join(exportFolder, name)
err = filelock.WriteFile(writePath, code.Tokens)
if nil != err {