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/13669

Vanessa46d71eb69fc4
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index fd1ec793bd..b676ace5f1 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -406,7 +406,7 @@ const renderPDF = async (id: string) => {
// https://github.com/siyuan-note/siyuan/issues/13669
wysElement.querySelectorAll('[data-node-id]').forEach((item) => {
if (item.querySelector(".img")) {
- item.innerHTML = item.innerHTML + "<hr style='margin:0;border:0'>"
+ item.insertAdjacentHTML("beforeend", "<hr style='margin:0;border:0'>");
}
})
Protyle.mermaidRender(wysElement, "${servePath}/stage/protyle");