LinuxCommandLibrary

marp

TLDR

Convert to HTML

$ marp [slides.md] -o [slides.html]
copy
Convert to PDF
$ marp [slides.md] --pdf -o [slides.pdf]
copy
Convert to PPTX
$ marp [slides.md] --pptx -o [slides.pptx]
copy
Preview with live reload
$ marp --preview [slides.md]
copy
Use custom theme
$ marp --theme [theme.css] [slides.md] -o [output.html]
copy
Start server mode
$ marp --server [slides/]
copy

SYNOPSIS

marp [options] file

DESCRIPTION

Marp (Markdown Presentation Ecosystem) creates presentations from Markdown. It converts specially formatted Markdown into slides in HTML, PDF, or PowerPoint formats.
Slides are separated by --- and support custom themes, speaker notes, and directives.

PARAMETERS

-o, --output file

Output filename.
--pdf
Export as PDF.
--pptx
Export as PowerPoint.
--html
Export as HTML.
--preview
Open preview window.
--server
Start server mode.
--theme css
Custom theme file.
--watch
Watch for changes.

SLIDE FORMAT

$ ---
marp: true
theme: default
---

# Slide 1

Content here

---

# Slide 2

More content
copy

CAVEATS

PDF export requires Chrome/Chromium. Some CSS features limited. Images need accessible paths. PPTX has formatting limitations.

HISTORY

Marp was created by Yuki Hattori (yhatt) in 2016 as Marp desktop app, later rewritten as Marp Next ecosystem with CLI.

SEE ALSO

reveal.js(1), slidev(1), pandoc(1), remark(1)

Copied to clipboard