From ab1c3669c4cde652a14be15427bc2882a42e2b14 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 18 Oct 2022 09:53:05 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=9F=A5=E8=AF=A2=E5=B5=8C=E5=85=A5?= =?UTF-8?q?=E5=9D=97=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=9D=A2=E5=8C=85=E5=B1=91=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/6184?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/block.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 6d618a72e..9c97cf902 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -434,15 +434,9 @@ func getEmbeddedBlock(trees map[string]*parse.Tree, sqlBlock *sql.Block, heading luteEngine.RenderOptions.ProtyleContenteditable = false // 不可编辑 dom := renderBlockDOMByNodes(nodes, luteEngine) block = &Block{Box: def.Box, Path: def.Path, HPath: b.HPath, ID: def.ID, Type: def.Type.String(), Content: dom} - defBreadCrumb := def.IALAttr("breadcrumb") - if "" != defBreadCrumb { - if "true" == defBreadCrumb { - blockPaths = buildBlockBreadcrumb(def) - } - } else { - if Conf.Editor.EmbedBlockBreadcrumb { - blockPaths = buildBlockBreadcrumb(def) - } + if breadcrumb { + blockPaths = buildBlockBreadcrumb(def) + } if 1 > len(blockPaths) { blockPaths = []*BlockPath{}