🎨 Improve breadcrumb https://github.com/siyuan-note/siyuan/issues/13141#issuecomment-2476789553
This commit is contained in:
parent
9681fe6d80
commit
8229dded32
1 changed files with 4 additions and 0 deletions
|
@ -468,6 +468,10 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string, isEmbedBlock bo
|
|||
add := true
|
||||
if ast.NodeList == parent.Type || ast.NodeSuperBlock == parent.Type || ast.NodeBlockquote == parent.Type {
|
||||
add = false
|
||||
if parent == node {
|
||||
// https://github.com/siyuan-note/siyuan/issues/13141#issuecomment-2476789553
|
||||
add = true
|
||||
}
|
||||
}
|
||||
if ast.NodeParagraph == parent.Type && nil != parent.Parent && ast.NodeListItem == parent.Parent.Type && nil == parent.Next && (nil == parent.Previous || ast.NodeTaskListItemMarker == parent.Previous.Type) {
|
||||
add = false
|
||||
|
|
Loading…
Add table
Reference in a new issue