mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 02:06:10 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
4bc9d9496e
commit
5c85f67e49
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue