增加了可打印版本的src
This commit is contained in:
1 parent
0161480fa2
commit
d3e7503676
9 files changed
+288
-197
No files matched your search
@@ -9,7 +9,7 @@ export async function generate_pdf() {
|
||||
await builder.with_browser();
|
||||
console.debug(`Processing config: ${JSON.stringify(config)}`);
|
||||
builder.with_files_sync(config.journal.from_directory);
|
||||
builder.as_html_page();
|
||||
await builder.as_html_page();
|
||||
await builder.build_as_pdf(config.playwright);
|
||||
} finally {
|
||||
await builder.close_browser();
|
||||
@@ -25,7 +25,7 @@ export async function generate_md() {
|
||||
|
||||
console.debug(`Processing config: ${JSON.stringify(config)}`);
|
||||
builder.with_files_sync(config.journal.from_directory);
|
||||
builder.as_markdown();
|
||||
await builder.as_markdown();
|
||||
const markdownPath = config.md?.path ?? config.markdown_output;
|
||||
if (!markdownPath) {
|
||||
throw new Error("Missing markdown output path in config. Use md.path.");
|
||||
|
||||
Reference in new issue
Block a user