This commit is contained in:
Vanessa 2023-03-05 13:46:28 +08:00
parent ba5f10eb52
commit 87c59fbe0d

View file

@ -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,