Skip to content

Commit 744f2a1

Browse files
committed
Merge branch 'master' of https://github.com/Rigbin/vscode-markdown-pdf into release/1.4.4
2 parents 735373f + ba246d8 commit 744f2a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ function exportPdf(data, filename, type, uri) {
423423
path: exportFilename,
424424
scale: vscode.workspace.getConfiguration('markdown-pdf')['scale'],
425425
displayHeaderFooter: vscode.workspace.getConfiguration('markdown-pdf')['displayHeaderFooter'],
426-
headerTemplate: vscode.workspace.getConfiguration('markdown-pdf')['headerTemplate'] || '',
426+
headerTemplate: vscode.workspace.getConfiguration('markdown-pdf', uri)['headerTemplate'] || '',
427427
footerTemplate: vscode.workspace.getConfiguration('markdown-pdf')['footerTemplate'] || '',
428428
printBackground: vscode.workspace.getConfiguration('markdown-pdf')['printBackground'],
429429
landscape: landscape_option,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@
302302
"markdown-pdf.headerTemplate": {
303303
"type": "string",
304304
"default": "<div style=\"font-size: 9px; margin-left: 1cm;\"> <span class='title'></span></div> <div style=\"font-size: 9px; margin-left: auto; margin-right: 1cm; \"> <span class='date'></span></div>",
305-
"description": "pdf only. HTML template for the print header."
305+
"description": "pdf only. HTML template for the print header.",
306+
"scope": "resource"
306307
},
307308
"markdown-pdf.footerTemplate": {
308309
"type": "string",

0 commit comments

Comments
 (0)