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

Title doesnt show in Header #193

Open
helderc opened this issue Apr 23, 2020 · 4 comments
Open

Title doesnt show in Header #193

helderc opened this issue Apr 23, 2020 · 4 comments

Comments

@helderc
Copy link

helderc commented Apr 23, 2020

I have the file called file.md with the following code:

---
title: Test Header
---

some text

When I generate the PDF, I expect to have in the header the text Text Header, however I got the same name of the file file.md.

Is there something that I missed?
I have the configuration for the header:

"markdown-pdf.headerTemplate": "<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>"
@wi18b088
Copy link

I have the same issue, I was wondering if the header and footer can be customised using title: and author: for example.

@intellekta
Copy link

same issue

@FiyaFly
Copy link

FiyaFly commented Aug 14, 2020

Agreed. I would love to see this be an option.

@macchaka
Copy link

I guess that markdown-pdf can't read markdown metadata.

e.g. "title" option is described as "markdown file name". "date" option is described as "formatted print date".

It is internally defined and cannot be changed by define at metadata.

So I hoped that it to add the reserved keywords to refer from the metadata.

#367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants