Skip to content

Marp Presentations

Bokuchi can render Markdown files as slide presentations using Marp. Write your slides in Markdown and preview them as a presentation — no separate presentation software needed.

A Marp presentation in Bokuchi — Markdown in the editor on the left, rendered slides in the center, and the outline panel on the right

Marp is disabled by default. To enable it:

  1. Open Settings with Cmd+, (macOS) or Ctrl+, (Windows/Linux)
  2. Go to Advanced > Rendering Extensions
  3. Turn on Marp (Presentations)
The Bokuchi Settings screen with the Marp (Presentations) toggle turned on under Rendering Extensions

Add marp: true to the YAML front-matter at the top of your Markdown file. Separate slides with --- (three hyphens on their own line).

---
marp: true
---
# Slide 1
Welcome to my presentation!
---
# Slide 2
- Point A
- Point B
- Point C
---
# Slide 3
Thank you!

When Bokuchi detects marp: true in the front-matter, the preview automatically switches to presentation mode.

Marp presentations behave differently depending on the current view mode:

All slides are displayed vertically in the preview pane. The editor and slides scroll together, so you can see which slide you are editing.

Slides are displayed one at a time with navigation controls:

ActionShortcut
Next slideRight arrow / Down arrow / Space
Previous slideLeft arrow / Up arrow
Exit fullscreenEscape

A slide counter at the top shows your current position (e.g., “Slide 2 of 10”).

Preview Only mode showing a single Marp slide with navigation arrows and a slide counter

Click the fullscreen button in the preview header to display the current slide in a 16:9 aspect ratio on a dark background. Press Escape to exit fullscreen.

A Marp slide displayed fullscreen in 16:9 on a dark background with a slide counter

Click the grid button in the preview header to see all slides at a glance. Click any thumbnail to jump to that slide.

Thumbnail grid showing all slides of a Marp presentation at a glance

Marp supports built-in themes. Specify a theme in the front-matter:

---
marp: true
theme: gaia
---

Available Marp themes include default, gaia, and uncover.

A Marp presentation rendered with the gaia theme, set via theme: gaia in the front-matter

Beyond the built-in themes, you can register your own Marp themes from a folder of CSS files.

  1. Open Settings > Advanced (Marp must be enabled).
  2. Under Marp Theme Folder, click Choose Folder… and select a folder containing your .css theme files.
  3. Bokuchi scans the folder and lists the themes it finds. Use Reload if you add or change files, or Clear to remove the folder.

Each CSS file becomes a selectable theme as long as it starts with an @theme header naming the theme:

/* @theme my-theme */
section {
background: #fdf6e3;
color: #333;
}

Then reference that name in your slide’s front-matter, just like a built-in theme:

---
marp: true
theme: my-theme
---
The Marp Theme Folder card in Settings > Advanced, with the Choose Folder / Reload / Clear buttons and a list of detected theme names

Relative image paths in your Markdown work inside Marp presentations. Bokuchi automatically resolves them so that images display correctly in the preview.

---
marp: true
---
![Diagram](./images/diagram.png)