From 9634b913bfb7dc0dc3e20c662dedd223df3c16eb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 9 Mar 2025 17:22:49 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14318 --- app/src/protyle/export/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index b676ace5f..44f37e9e2 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) => {