Before you start

Marp’s documented HTML conversion turns Markdown into a navigable deck. This starter uses an editable local file and does not require a hosted slide editor or PDF rendering.

What you’ll make
An editable deck.md and a self-contained deck.html for three slides.
What you’ll need
Node.js 18+, npm, and any modern browser for viewing the HTML. This example uses no remote assets.

Step by step

  1. Pin the renderer

    Initialize a new npm project, add Marp CLI v4.5.1 as a project dependency, and confirm the version. Keep the resulting lockfile.

  2. Write the deck

    Start deck.md with YAML front matter using marp: true, theme: default, and paginate: true. End the front matter before slide 1. Place a line with three hyphens between slides. Use three slides: a title, one before-and-after comparison, and a single takeaway.

  3. Export the HTML

    Run the local marp binary with the Markdown path and output filename. No browser automation is needed to generate HTML, and no assets need to be downloaded for the written deck.

  4. Review the presentation

    Open deck.html locally. Step through all three slides and make sure headings, examples and page numbers fit. Fix overflow in deck.md and export again instead of editing the generated HTML.

Commands

npm init -y
npm install --save-dev --save-exact @marp-team/marp-cli@4.5.1
npx --no-install marp --version
# Write deck.md with Marp front matter and three slides.
npx --no-install marp deck.md -o deck.html

Sign-in & permissions

No login or API key. The only network access this route needs is to install npm dependencies. No uploads or hosting changes are part of the workflow.

Marp CLI includes a built-in theme for this workflow. No VS Code extension, agent skill, or MCP connector is required.

Prompt for your agent

Use with: Codex, Claude Code or any coding agent with a terminal and Node.js 18+.

Copy the whole prompt into a supported agent. After any manual step, tell the same agent to continue from that step.

Use a clean project folder for this workflow: Build a shareable slide deck from Markdown. Supported setup: Codex, Claude Code or any coding agent with a terminal and Node.js 18+.. Start from the original documentation: https://github.com/marp-team/marp-cli.

1. SET UP
Use a new local npm project and the pinned package. This workflow is HTML-only, so skip PDF/PowerPoint browser setup. Do not change any editor settings.

Documented commands or code reference (respect the comments and replace placeholders before running individual commands):
npm init -y
npm install --save-dev --save-exact @marp-team/marp-cli@4.5.1
npx --no-install marp --version
# Write deck.md with Marp front matter and three slides.
npx --no-install marp deck.md -o deck.html

2. PAUSE FOR ME IF NEEDED
For a host install, sign-in, permission screen, or model download that needs my consent, stop and tell me the exact app, control and what will be authorized. Do not enter passwords, OTPs or secrets in chat. Resume after I confirm.

3. BUILD THE FIRST RESULT
Create deck.md with a three-slide technical brief called “What changed in this release?” Use fictional release notes for a small interface improvement; add Marp front matter, two slide separators and one sentence of speaker guidance in an HTML comment on each slide. Keep all text short and use no remote fonts or images. Export deck.html next to the Markdown.

4. CHECK THE RESULT
Check that deck.html exists, renders three non-empty slides, and has no clipped content at a laptop size. Open the HTML locally if browser tools are available; otherwise verify the rendered slide markup and ask me to look at navigation. Return deck.md, deck.html and the lockfile. Give me the actual file paths and anything that still needs a manual action. Do not publish or make a purchase.

Sources