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

Vanessa0a24337d7d01
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index 623718ef1f..c896054f18 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -766,14 +766,6 @@ export const exportMd = (id: string) => {
keepFold: localData.keepFold,
merge: localData.mergeSubdocs,
}, async response => {
- const htmlElement = document.createElement("template");
- htmlElement.innerHTML = response.data.content;
- htmlElement.content.querySelectorAll("svg > use").forEach(item => {
- const symbolElement = document.querySelector(`symbol${item.getAttribute("xlink:href")}`);
- item.parentElement.setAttribute("viewBox", symbolElement.getAttribute("viewBox"));
- item.outerHTML = symbolElement.innerHTML;
- });
- response.data.content = htmlElement.innerHTML
const html = await onExport(response, undefined, {type: "pdf", id});
window.JSAndroid.exportPDF(html);
});