Last Updated: July 12, 2018
· rksuda

Remove headers from PDF files generated by the Markdown PDF VSCode extension

Markdown PDF is an awesome extension for Visual Studio Code. It converts Markdown files to PDF files.
The extension has an option markdown-pdf.displayHeaderFooter. You can remove both a header and a footer by setting the option false. But there is no option to remove a header alone while keeping a footer.

If you want to do that, edit the markdown-pdf.headerTemplate option to hide the header:

    "markdown-pdf.headerTemplate": "<span class='title' style='display: none;'></span>"