yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
1.01k stars 206 forks source link

Exclude Date and Markdown filename.md from PDF output #331

Open sdntechforum opened 1 year ago

sdntechforum commented 1 year ago

I am using cmd+shift+P to export the markdown to pdf. The output file header inherits the date and name of the markdown file, Is there a way to exclude them from the final output? Which Markdown setting i should change?

coppolat1 commented 1 year ago

You can set the following setting to false, but it will also disable the footer (page numbers).

"markdown-pdf.displayHeaderFooter": false,

I actually came here to open up an issue to suggest that this should be separated into two booleans: one for header and one for footer, but it appears this project has not been committed to in a few years.

owanerwo commented 1 year ago

There are two seperate settings headerTemplate and footerTemplate. Put whatever you like in the header template, a title or an empty element. Even putting a single space there overrides the default setting and solves your problem.