mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve breadcrumb in embed blocks https://github.com/siyuan-note/siyuan/issues/13099
This commit is contained in:
parent
01415b4821
commit
14f5570558
3 changed files with 5 additions and 5 deletions
|
|
@ -220,7 +220,7 @@ func buildBacklink(refID string, refTree *parse.Tree, keywords []string, luteEng
|
|||
dom := renderBlockDOMByNodes(renderNodes, luteEngine)
|
||||
var blockPaths []*BlockPath
|
||||
if (nil != n.Parent && ast.NodeDocument != n.Parent.Type) || (ast.NodeHeading != n.Type && 0 < treenode.HeadingLevel(n)) {
|
||||
blockPaths = buildBlockBreadcrumb(n, nil)
|
||||
blockPaths = buildBlockBreadcrumb(n, nil, false)
|
||||
}
|
||||
if 1 > len(blockPaths) {
|
||||
blockPaths = []*BlockPath{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue