mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
5c79a0c387
commit
0a24337d7d
1 changed files with 0 additions and 8 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue