From 3cfe083ed9e7bc61f321130bc1f73590e472e266 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 10 Feb 2023 14:41:47 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=9D=A2=E5=8C=85=E5=B1=91=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=87=BA=E7=8E=B0=E5=85=89=E6=A0=87=E6=8F=92=E5=85=A5?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/blockinfo.go | 2 ++ 1 file changed, 2 insertions(+) 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,