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

Unwanted default footers/headers automatically added in CLI only #161

Open
hxlnt opened this issue Apr 12, 2023 · 0 comments
Open

Unwanted default footers/headers automatically added in CLI only #161

hxlnt opened this issue Apr 12, 2023 · 0 comments

Comments

@hxlnt
Copy link

hxlnt commented Apr 12, 2023

In the CLI, it seems that Puppeteer is adding its own headers or footers depending on what flags are passed in.
image
This may be related to #160:

CLI command Result
mdpdf topic.md ✅ No footers added
mdpdf topic.md --header=header.html --h-height=40px ❌ Custom header is not added. ❌ Unwanted footer is added: {File path} {Page count}
mdpdf topic.md --footer=footer.html --f-height=40px ❌ Custom footer is not added. ❌ Unwanted header is added: {Date} {Time}
mdpdf topic.md --footer=footer.html --f-height=40px --header=header.html --h-height=40px ❌ Custom header is not added. ❌ Custom footer is not added.

Notably, this does not occur when calling from the Node API.

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

1 participant