Converting Markdown Slides to PDF with marp-cli

Tadashi Shigeoka ·  Sat, April 27, 2024

I’ll introduce how to convert slides created with Marp in Markdown to PDF using CLI.

Solution: Use @marp-team/marp-cli

npx @marp-team/marp-cli --pdf target.md --allow-local-files

Background: Marp for VS Code Export PDF Sometimes Doesn’t Work

Marp for VS Code sometimes fails to export slide decks, and in such cases, I generate PDFs using CLI.

That’s all from the Gemba.