mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
✨ Support for more export formats https://github.com/siyuan-note/siyuan/issues/8127
This commit is contained in:
parent
01dff7eb5d
commit
c3df45a406
6 changed files with 306 additions and 194 deletions
|
|
@ -635,12 +635,29 @@ export const exportMd = (id: string) => {
|
|||
icon: "iconMore",
|
||||
type: "submenu",
|
||||
submenu: [{
|
||||
label: "Word .docx",
|
||||
icon: "iconExact",
|
||||
label: "reStructuredText",
|
||||
click: () => {
|
||||
saveExport({type: "word", id});
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
fetchPost("/api/export/exportReStructuredText", {
|
||||
id,
|
||||
}, response => {
|
||||
hideMessage(msgId);
|
||||
openByMobile(response.data.zip);
|
||||
});
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
label: "AsciiDoc",
|
||||
click: () => {
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
fetchPost("/api/export/exportAsciiDoc", {
|
||||
id,
|
||||
}, response => {
|
||||
hideMessage(msgId);
|
||||
openByMobile(response.data.zip);
|
||||
});
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
/// #endif
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue