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

This commit is contained in:
Liang Ding 2022-11-24 01:04:23 +08:00
parent d1458167f1
commit 255a9c1e01
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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 {