Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend setting 'headerTemplate' with scope... #184

Merged
merged 1 commit into from
Mar 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function exportPdf(data, filename, type, uri) {
path: exportFilename,
scale: vscode.workspace.getConfiguration('markdown-pdf')['scale'],
displayHeaderFooter: vscode.workspace.getConfiguration('markdown-pdf')['displayHeaderFooter'],
headerTemplate: vscode.workspace.getConfiguration('markdown-pdf')['headerTemplate'] || '',
headerTemplate: vscode.workspace.getConfiguration('markdown-pdf', uri)['headerTemplate'] || '',
footerTemplate: vscode.workspace.getConfiguration('markdown-pdf')['footerTemplate'] || '',
printBackground: vscode.workspace.getConfiguration('markdown-pdf')['printBackground'],
landscape: landscape_option,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@
"markdown-pdf.headerTemplate": {
"type": "string",
"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>",
"description": "pdf only. HTML template for the print header."
"description": "pdf only. HTML template for the print header.",
"scope": "resource"
},
"markdown-pdf.footerTemplate": {
"type": "string",
Expand Down