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

Vanessa9634b913bfb7
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index b676ace5f1..44f37e9e24 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -313,9 +313,7 @@ const renderPDF = async (id: string) => {
})
Protyle.highlightRender(previewElement, "${servePath}/stage/protyle");
previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => {
- item.style.width = "";
- item.style.boxSizing = "border-box";
- item.style.width = Math.min(item.clientWidth, width) + "px";
+ // 超级块内不能移除 width https://github.com/siyuan-note/siyuan/issues/14318
item.removeAttribute('data-render');
})
previewElement.querySelectorAll('[data-type="NodeCodeBlock"][data-subtype="mermaid"] svg').forEach((item) => {