18.【Marp】Creating Presentation Slides (HTML / PPTX) from Markdown in VS Code

tags:


What This Article Covers

Use Markdown (md) as the source and generate presentation slides directly from VS Code.

※ No discussion about management, philosophy, or workflow
Just “create → view”


Prerequisites


1️⃣ Prepare Markdown (VS Code)

Create physical-first.md in VS Code.

---
marp: true
theme: default
paginate: true
size: 16:9
---
# Sample Slide

---

## Second Slide

- Markdown is the manuscript
- `---` separates slides

Workspace View (Preparing Markdown)

Preparing md (VS Code)


2️⃣ Generate HTML (Marp CLI)

Open PowerShell, move to the folder containing the md file, and run:

marp physical-first.md --html

Output

physical-first.html

Execution Result (HTML Generation)

HTML Generation

How to Check


3️⃣ Generate PPTX (PowerPoint)

Run the following in the same folder:

marp physical-first.md --pptx

Output

physical-first.pptx

Execution Result (PPTX Generation)

PPTX Generation

How to Check


⚠️ Notes

❌ NG

marp physical-first.md --html --pptx

⭕ OK

marp physical-first.md --html
marp physical-first.md --pptx


Summary

marp slide.md --html
marp slide.md --pptx

With a single Markdown file, you can create presentation slides.