Skip to content
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 .pptx in 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

  1. Install Marp for VS Code (marp-team.marp-vscode).
  2. Start a Markdown file with marp: true in its frontmatter, and put --- between slides.
  3. Preview it next to the source with Ctrl+K V (Cmd+K V on a Mac). The preview updates as you type.
  4. Add speaker notes as HTML comments: <!-- say this -->.
  5. Export with the Marp button at the top right of the editor: Export slide deck…
FormatPresent it withSpeaker notes
HTMLAny browser. Hover at the bottom for fullscreen and presenter viewYes, in presenter view
PowerPoint (.pptx)PowerPointYes, in the notes pane. Slides are images, so their text can’t be edited
PDFAny PDF viewer, fullscreenNo
PNG or JPEGAnywhere images goNo

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 .pptx slide 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

  1. https://marp.app/
  2. https://github.com/marp-team/marp-vscode
  3. https://github.com/marp-team/marp-cli

Notes

  • VS Code extension ID: marp-team.marp-vscode. Check that it’s allowed on work laptops (verify).