🎨 使用 API /api/block/getBlockKramdown
查询时返回 IAL Fix https://github.com/siyuan-note/siyuan/issues/6670
This commit is contained in:
parent
fe4eff719c
commit
a6f5b9a36e
1 changed files with 4 additions and 1 deletions
|
@ -371,8 +371,11 @@ func GetBlockKramdown(id string) (ret string) {
|
|||
|
||||
addBlockIALNodes(tree, false)
|
||||
node := treenode.GetNodeInTree(tree, id)
|
||||
root := &ast.Node{Type: ast.NodeDocument}
|
||||
root.AppendChild(node.Next) // IAL
|
||||
root.PrependChild(node)
|
||||
luteEngine := NewLute()
|
||||
ret = treenode.ExportNodeStdMd(node, luteEngine)
|
||||
ret = treenode.ExportNodeStdMd(root, luteEngine)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue