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

Vanessa84722c3d0d15
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 71fe24372f..03536811c2 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -308,6 +308,7 @@ const renderPDF = async (id: string) => {
// 强制换行 https://ld246.com/article/1679228783553
item.parentElement.setAttribute("linewrap", "true");
item.parentElement.style.width = "";
+ item.parentElement.style.boxSizing = "border-box";
item.parentElement.style.width = Math.min(item.parentElement.clientWidth, width) + "px";
item.removeAttribute('data-render');
})