Marp
Marp
- Link
- https://marp.app/
- Type
- App
- State
- active
- Tags
- #tool #slides #editor #converter #windows #macos #linux #cli #free #open-source
Summary
Write a slide deck as one ordinary Markdown file. Add marp: true to the frontmatter and separate slides with ---. The official Marp for VS Code extension shows a live slide preview next to the source and exports to HTML, PDF, and PowerPoint (.pptx). Marp CLI does the same from the command line or a GitHub Action.
The chosen slide tool for Markdown 101, because:
- The source stays plain Markdown. It reads fine on GitHub, in OneDrive, or in Notepad, even without Marp.
- It works inside VS Code with no project, Node install, or build step.
- PowerPoint and PDF export fit a Microsoft 365 workplace: share the
.pptxin Teams, or the PDF anywhere. - It’s the simplest of the code-first slide tools to learn, which suits a course about simple Markdown.
How to use it
- Install Marp for VS Code (
marp-team.marp-vscode). - Start a Markdown file with
marp: truein its frontmatter, and put---between slides. - Preview it next to the source with
Ctrl+K V(Cmd+K Von a Mac). The preview updates as you type. - Add speaker notes as HTML comments:
<!-- say this -->. - Export with the Marp button at the top right of the editor: Export slide deck…
| Format | Present it with | Speaker notes |
|---|---|---|
| HTML | Any browser. Hover at the bottom for fullscreen and presenter view | Yes, in presenter view |
PowerPoint (.pptx) | PowerPoint | Yes, in the notes pane. Slides are images, so their text can’t be edited |
| Any PDF viewer, fullscreen | No | |
| PNG or JPEG | Anywhere images go | No |
From the command line: npx @marp-team/marp-cli slides.md --pdf (or --pptx, --html).
Custom themes: list the CSS file under markdown.marp.themes in .vscode/settings.json, then set theme: in the frontmatter. VS Code only loads it in a trusted workspace.
Gotchas
- Export needs a local Chrome, Edge, or Firefox. Edge is already on Windows.
- By default each
.pptxslide is an image, so people can present it but not edit it in PowerPoint. An experimental editable PPTX export exists and needs LibreOffice (verify). - Export is turned off in VS Code’s untrusted workspaces and in VS Code for the Web.
- Less interactive than Slidev or reveal.js: no live code or click-through animations.
References
Notes
- VS Code extension ID:
marp-team.marp-vscode. Check that it’s allowed on work laptops (verify).