Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7575

Vanessa87c59fbe0d1b
diff --git a/app/src/protyle/markdown/blockRender.ts b/app/src/protyle/markdown/blockRender.ts
index 2a4ca22512..afb817fc67 100644
--- a/app/src/protyle/markdown/blockRender.ts
+++ b/app/src/protyle/markdown/blockRender.ts
@@ -1,4 +1,4 @@
-import {hasClosestByAttribute} from "../util/hasClosest";
+import {hasClosestByAttribute, hasTopClosestByClassName} from "../util/hasClosest";
import {fetchPost} from "../../util/fetch";
import {processRender} from "../util/processCode";
import {highlightRender} from "./highlightRender";
@@ -35,6 +35,11 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
} else {
breadcrumb = window.siyuan.config.editor.embedBlockBreadcrumb;
}
+ // https://github.com/siyuan-note/siyuan/issues/7575
+ const sbElement = hasTopClosestByClassName(item, "sb")
+ if (sbElement) {
+ breadcrumb = false;
+ }
fetchPost("/api/search/searchEmbedBlock", {
embedBlockID: item.getAttribute("data-node-id"),
stmt: content,