diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go index cffbb2673..f4a3bcd0c 100644 --- a/kernel/model/blockinfo.go +++ b/kernel/model/blockinfo.go @@ -26,6 +26,7 @@ import ( "github.com/88250/gulu" "github.com/88250/lute/ast" + "github.com/88250/lute/editor" "github.com/88250/lute/parse" "github.com/siyuan-note/logging" "github.com/siyuan-note/siyuan/kernel/sql" @@ -283,6 +284,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa } } + name = strings.ReplaceAll(name, editor.Caret, "") if add { ret = append([]*BlockPath{{ ID: id,