From 706fe150774ef9c44f6240e9979b244099ed9608 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 31 Dec 2024 18:36:08 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13669 --- app/src/protyle/export/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index bd1083bcf..fd1ec793b 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 + "
" + } + }) Protyle.mermaidRender(wysElement, "${servePath}/stage/protyle"); Protyle.flowchartRender(wysElement, "${servePath}/stage/protyle"); Protyle.graphvizRender(wysElement, "${servePath}/stage/protyle");