yhatt/marp

Export as PDF from the command line

ssaunier opened this issue ยท 3 comments

Hi there ๐Ÿ‘‹

First of all, marp is an amazing tool, can't wait to see its reboot released ๐ŸŽ‰ !

This is more a feature request than a bug report. Would it be possible to add a feature to automatically export as a PDF a .md file using the relevant command line flags?

We can already a open a .md file with (on macOS):

/Applications/Marp.app/Contents/MacOS/Marp example.md

The API would look like something like this:

alias marp="/Applications/Marp.app/Contents/MacOS/Marp"

marp example.md --pdf # would produce example.pdf
marp example.md --pdf=output/other_name.pdf

Is this something planned?

Thank you!

@yhatt WDYT? Is it hard to implement?

I believe this will skip this pre-release version of Marp and be implemented directly in marp-team/marp-cli if its not already!

yhatt commented

We have implemented PDF export in @marp-team/marp-cli v0.0.4. ๐Ÿ‘