Skip to content

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

:art: 面包屑可能出现光标插入符

Liang Ding3cfe083ed9e7
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go
index cffbb2673b..f4a3bcd0c5 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,