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

Convert slide deck into PDF with Puppeteer #2

Merged
merged 10 commits into from
Aug 23, 2018
Merged

Convert slide deck into PDF with Puppeteer #2

merged 10 commits into from
Aug 23, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 23, 2018

This PR will support converting Marp slide deck into PDF directly. We use a headless Chrome through Puppeteer.

marp-cli recognizes --pdf option or -o option with .pdf extension.

# --pdf option
npx @marp-team/marp-cli slide-deck.md --pdf

# -o option with .pdf extension
npx @marp-team/marp-cli slide-deck.md -o convert.pdf

We are using puppeteer-core package to avoid installing a new Chromium to your computer, so the PDF conversion will require Chrome that is installed by user.

Fix yhatt/marp#50, yhatt/marp#164, and yhatt/marp#222.

For yhatt/marp user: marp-cli is based on the new Marpit framework. You might have to update your Markdown written for the pre-released Marp.

@yhatt yhatt merged commit 99102a7 into master Aug 23, 2018
@yhatt yhatt deleted the puppeteer branch August 23, 2018 10:55
@Naereen
Copy link

Naereen commented Aug 23, 2018

Great!

@stilvoid
Copy link

Nice!

@phillebaba phillebaba mentioned this pull request Oct 6, 2020
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

Successfully merging this pull request may close these issues.

3 participants