Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14326

Vanessa73efbe9737e9
diff --git a/app/src/protyle/render/blockRender.ts b/app/src/protyle/render/blockRender.ts
index 6cfc2dcc9f..7e936d873a 100644
--- a/app/src/protyle/render/blockRender.ts
+++ b/app/src/protyle/render/blockRender.ts
@@ -23,6 +23,7 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
}
// 需置于请求返回前,否则快速滚动会导致重复加载 https://ld246.com/article/1666857862494?r=88250
item.setAttribute("data-render", "true");
+ item.querySelector(".protyle-wysiwyg__embed")?.remove();
genRenderFrame(item);
item.style.height = (item.clientHeight - 4) + "px"; // 减少抖动 https://ld246.com/article/1668669380171
const content = Lute.UnEscapeHTMLStr(item.getAttribute("data-content"));