🎨 Hide text in breadcrumb of last non-document path in embed block https://github.com/siyuan-note/siyuan/issues/13866

This commit is contained in:
Daniel 2025-02-16 17:25:05 +08:00
parent dbbd250894
commit e9b8ff7a55
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -554,8 +554,15 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string, isEmbedBlock bo
name = util.UnescapeHTML(name)
name = util.EscapeHTML(name)
if !isEmbedBlock && parent == node {
name = ""
if !isEmbedBlock {
if parent == node {
name = ""
}
} else {
if ast.NodeDocument != parent.Type {
// 在嵌入块中隐藏最后一个非文档路径的面包屑中的文本 Hide text in breadcrumb of last non-document path in embed block https://github.com/siyuan-note/siyuan/issues/13866
name = ""
}
}
if add {