🎨 Improve the backlink display when the first sub-block under the list item block contains hyperlinks Fix https://github.com/siyuan-note/siyuan/issues/8661

This commit is contained in:
Daniel 2023-07-03 10:50:13 +08:00
parent e520e0aa18
commit e6aa17249a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -710,7 +710,7 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
markdown = treenode.ExportNodeStdMd(n, luteEngine)
content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
fc := treenode.FirstLeafBlock(n)
fcontent = treenode.NodeStaticContent(fc, nil, false, false)
fcontent = treenode.NodeStaticContent(fc, nil, true, false)
parentID = n.Parent.ID
// 将标题块作为父节点
if h := heading(n); nil != h {