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

Vanessa706fe150774e
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index bd1083bcfd..fd1ec793bd 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -403,6 +403,12 @@ const renderPDF = async (id: string) => {
if (data.attrs.alias) {
wysElement.setAttribute("alias", data.attrs.alias);
}
+ // 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'>"
+ }
+ })
Protyle.mermaidRender(wysElement, "${servePath}/stage/protyle");
Protyle.flowchartRender(wysElement, "${servePath}/stage/protyle");
Protyle.graphvizRender(wysElement, "${servePath}/stage/protyle");