mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 12:50:16 +01:00
🎨 数据库中表 blocks 的 markdown 字段使用 Markdown 标记符 Fix https://github.com/siyuan-note/insider/issues/1053
This commit is contained in:
parent
371062efdb
commit
a383f8de68
7 changed files with 21 additions and 10 deletions
|
|
@ -113,7 +113,7 @@ func GetBlockKramdown(id string) (ret string) {
|
|||
addBlockIALNodes(tree, false)
|
||||
node := treenode.GetNodeInTree(tree, id)
|
||||
luteEngine := NewLute()
|
||||
ret, _ = lute.FormatNodeSync(node, luteEngine.ParseOptions, luteEngine.RenderOptions)
|
||||
ret = treenode.ExportNodeStdMd(node, luteEngine)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -601,7 +601,7 @@ func CopyStdMarkdown(id string) string {
|
|||
// 订阅用户使用云端图床服务
|
||||
luteEngine.RenderOptions.LinkBase = "https://assets.b3logfile.com/siyuan/" + Conf.User.UserId + "/"
|
||||
}
|
||||
return treenode.FormatNode(tree.Root, luteEngine)
|
||||
return treenode.ExportNodeStdMd(tree.Root, luteEngine)
|
||||
}
|
||||
|
||||
func ExportMarkdown(id string) (name, zipPath string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue