Convert Marp Markdown presentations to PowerPoint (.pptx) files.
go install github.com/pspoerri/marp2pptx@latestOr build from source:
make buildmarp2pptx presentation.md # outputs presentation.pptx
marp2pptx presentation.md -o out.pptx # custom output path- Headings (h1–h6)
- Paragraphs with bold, italic,
code, and links - Unordered and ordered lists
- Fenced code blocks (rendered in Courier New)
- Tables (rendered as native PowerPoint tables)
- Images and background images (
) - Marp directives via HTML comments (
<!-- _backgroundColor: #264653 -->) - Slide splitting on
---
The pipeline is: Marp parser → Markdown converter → PPTX writer
- Parse Marp frontmatter and split slides on
--- - Convert each slide's markdown to an intermediate content model using goldmark
- Generate OOXML directly and write a valid
.pptxZIP archive — no external PowerPoint library required
make install-hooks # set up git hooks (run once after cloning)
make test # run all tests
make test-verbose # verbose test output
make lint # vet + format check
make fmt # format all Go files
make clean # remove binary and generated pptx filesA pre-commit hook automatically formats staged .go files with gofmt.
MIT