This commit is contained in:
parent
896a19ae4f
commit
356cc24562
1 changed files with 11 additions and 12 deletions
|
@ -102,9 +102,9 @@ const renderPDF = async (id: string) => {
|
|||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes"/>
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" type="text/css" id="baseStyle" href="${servePath}/stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>
|
||||
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/appearance/themes/daylight/theme.css?${Constants.SIYUAN_VERSION}"/>
|
||||
<script src="${servePath}/stage/protyle/js/protyle-html.js?v=3.0.5"></script>
|
||||
<link rel="stylesheet" type="text/css" id="baseStyle" href="${servePath}/stage/build/export/base.css?v=${Constants.SIYUAN_VERSION}"/>
|
||||
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/appearance/themes/daylight/theme.css?v=${Constants.SIYUAN_VERSION}"/>
|
||||
<script src="${servePath}/stage/protyle/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}"></script>
|
||||
${themeStyle}
|
||||
<title>${window.siyuan.languages.export} PDF</title>
|
||||
<style>
|
||||
|
@ -638,7 +638,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd
|
|||
});
|
||||
};
|
||||
|
||||
const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => {
|
||||
const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => {
|
||||
let themeName = window.siyuan.config.appearance.themeLight;
|
||||
let mode = 0;
|
||||
if (["html", "htmlmd"].includes(exportOption.type) && window.siyuan.config.appearance.mode === 1) {
|
||||
|
@ -659,16 +659,15 @@ const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportO
|
|||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes"/>
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<script src="stage/protyle/js/lute/lute.min.js"></script>
|
||||
<script src="stage/protyle/js/protyle-html.js?v=3.0.5"></script>
|
||||
<link rel="stylesheet" type="text/css" id="baseStyle" href="stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>
|
||||
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="appearance/themes/${themeName}/theme.css?${Constants.SIYUAN_VERSION}"/>
|
||||
<link rel="stylesheet" type="text/css" id="baseStyle" href="stage/build/export/base.css?v=${Constants.SIYUAN_VERSION}"/>
|
||||
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="appearance/themes/${themeName}/theme.css?v=${Constants.SIYUAN_VERSION}"/>
|
||||
<script src="stage/protyle/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}"></script>
|
||||
${themeStyle}
|
||||
<title>${data.data.name}</title>
|
||||
<!-- Exported by SiYuan v${Constants.SIYUAN_VERSION} -->
|
||||
<style>
|
||||
body {font-family: var(--b3-font-family);background-color: var(--b3-theme-background);color: var(--b3-theme-on-background)}
|
||||
${setInlineStyle(false)}
|
||||
${await setInlineStyle(false)}
|
||||
${document.getElementById("pluginsStyle").innerHTML}
|
||||
${getSnippetCSS()}
|
||||
</style>
|
||||
|
@ -677,9 +676,9 @@ const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportO
|
|||
<div class="${["htmlmd", "word"].includes(exportOption.type) ? "b3-typography" : "protyle-wysiwyg" + (window.siyuan.config.editor.displayBookmarkIcon ? " protyle-wysiwyg--attr" : "")}"
|
||||
style="max-width: 800px;margin: 0 auto;"
|
||||
id="preview">${data.data.content}</div>
|
||||
<script src="appearance/icons/${window.siyuan.config.appearance.icon}/icon.js?${Constants.SIYUAN_VERSION}"></script>
|
||||
<script src="stage/build/export/protyle-method.js?${Constants.SIYUAN_VERSION}"></script>
|
||||
<script src="stage/protyle/js/lute/lute.min.js?${Constants.SIYUAN_VERSION}"></script>
|
||||
<script src="appearance/icons/${window.siyuan.config.appearance.icon}/icon.js?v=${Constants.SIYUAN_VERSION}"></script>
|
||||
<script src="stage/build/export/protyle-method.js?v=${Constants.SIYUAN_VERSION}"></script>
|
||||
<script src="stage/protyle/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}"></script>
|
||||
<script>
|
||||
window.siyuan = {
|
||||
config: {
|
||||
|
|
Loading…
Add table
Reference in a new issue