mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-12 11:48:50 +01:00
This commit is contained in:
parent
cdccf18974
commit
d04565e588
1 changed files with 3 additions and 1 deletions
|
|
@ -634,6 +634,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd
|
|||
}
|
||||
});
|
||||
};
|
||||
/// #endif
|
||||
|
||||
export const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => {
|
||||
let themeName = window.siyuan.config.appearance.themeLight;
|
||||
|
|
@ -715,8 +716,9 @@ id="preview">${data.data.content}</div>
|
|||
if (typeof filePath === "undefined") {
|
||||
return html;
|
||||
}
|
||||
/// #if !BROWSER
|
||||
const htmlPath = path.join(filePath, "index.html");
|
||||
fs.writeFileSync(htmlPath, html);
|
||||
afterExport(htmlPath, msgId);
|
||||
/// #endif
|
||||
};
|
||||
/// #endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue