yzane/vscode-markdown-pdf

Exclude Date and Markdown filename.md from PDF output

sdntechforum opened this issue · 2 comments

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?

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.

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.