Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 超级块下方块被作为嵌入块时设置显示面包屑后不渲染 Fix https://github.com/siyuan-note/siyuan/issues/6690

Liang Ding255a9c1e01ee
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go
index b5412b8a4e..8ab6569367 100644
--- a/kernel/model/blockinfo.go
+++ b/kernel/model/blockinfo.go
@@ -280,6 +280,10 @@ func buildBlockBreadcrumb(node *ast.Node) (ret []*BlockPath) {
if ast.NodeSuperBlock == prev.Type {
// 超级块中包含标题块时下方块面包屑计算不正确 https://github.com/siyuan-note/siyuan/issues/6675
b = treenode.SuperBlockLastHeading(prev)
+ if nil == b {
+ // 超级块下方块被作为嵌入块时设置显示面包屑后不渲染 https://github.com/siyuan-note/siyuan/issues/6690
+ b = prev
+ }
}
if ast.NodeHeading == b.Type && headingLevel > b.HeadingLevel {