Skip to content
FeaturesPricingBlogDownload

← All posts

Markdown slides: build a presentation from one .md file

Write Markdown slides in a single file and present them with Marp, Pandoc and reveal.js or Slidev, or export to PowerPoint and PDF. Syntax, commands and limits.

A clean diagram card on a light background showing one Markdown file split by divider lines into three presentation slides

Markdown slides are a presentation written as one .md file, with each slide separated by a line of three dashes (---). A slide tool turns the file into a deck: Marp renders it to HTML, PDF or PowerPoint with one command, Pandoc converts it to a reveal.js web presentation or an editable .pptx, and Slidev turns it into a web app with live code and themes. You write headings, bullets, images and code as usual, and the tool handles layout.

The appeal is the same as for any Markdown file. The deck is plain text you can version, search, reuse and edit in any editor, and a talk you gave last year is a file you can copy from rather than a deck you have to reopen. The commands below come from each project's documentation (checked November 2026).

What does a Markdown slide deck look like?

Here is a complete three-slide deck for Marp:

---
marp: true
paginate: true
---

# Quarterly review

Team Atlas, December 2026

---

## What shipped

- Search across folders
- Offline export
- Faster startup

<!-- Mention the startup numbers from the dashboard. -->

---

## Next quarter

![bg right:40%](images/roadmap.png)

1. Mobile editing
2. Shared templates

The block between the first two --- lines is front matter: settings for the whole deck. Every later --- line starts a new slide; on its own, the same line is a horizontal rule, which is why slide tools chose it as the separator. The HTML comment is a speaker note that the audience doesn't see.

How do you present Markdown slides with Marp?

Marp is built for exactly this file format. You can preview slides while writing with the Marp for VS Code extension, and build them with Marp CLI, which runs through Node.js without a separate install:

npx @marp-team/marp-cli@latest slides.md -o slides.html
npx @marp-team/marp-cli@latest slides.md --pdf
npx @marp-team/marp-cli@latest slides.md --pptx

PDF and PowerPoint output need Chrome, Edge or Firefox installed, because Marp renders the slides in a browser. Add --watch to rebuild when the file changes.

Marp settings, called directives, go in the front matter or in HTML comments on a slide:

Directive Effect
theme: gaia Switches the built-in theme (default, gaia, uncover)
paginate: true Adds slide numbers
<!-- _class: lead --> Applies the lead style to one slide, such as a centered title
![bg](photo.jpg) Uses an image as the slide background
![w:400](chart.png) Sets an image's width in pixels

One thing to know before sending a PowerPoint file: by default, Marp's .pptx output stores each slide as an image, so colleagues can present it but not edit the text. Use Pandoc when you need an editable PowerPoint file.

How do you make slides with Pandoc?

Pandoc converts a Markdown file to several slide formats. Install it from the Pandoc site, then:

pandoc slides.md -t revealjs -s -o slides.html
pandoc slides.md -o slides.pptx

The first command builds a reveal.js presentation, an HTML page you open in a browser and present full screen. By default it loads reveal.js from the web; to present offline, download reveal.js and point Pandoc at it with -V revealjs-url=reveal.js. The second builds a PowerPoint file with real text boxes you can edit.

Pandoc decides where slides start from headings and dividers:

  • A --- line always starts a new slide.
  • Headings at the slide level start a new slide. Pandoc picks that level automatically, usually ## when the deck uses # for section titles; set it with --slide-level=2.
  • A block marked ::: notes and closed with ::: becomes speaker notes.

For PowerPoint, add --reference-doc=template.pptx to use your organization's theme. Pandoc takes the slide layouts and styles from that file, so the deck matches the company template without manual formatting.

What about Slidev?

Slidev suits developer talks. It uses the same --- separators, adds per-slide front matter for layouts, and lets a slide include live Vue components and code with step-by-step highlighting. Start a deck with:

npm init slidev@latest

It runs a local dev server that reloads as you edit slides.md. Exporting to PDF or PowerPoint with slidev export needs the playwright-chromium package installed alongside it.

Which tool fits which deck?

You need Tool
A clean deck fast, exported to PDF Marp
A PowerPoint file others can edit, in your company template Pandoc with --reference-doc
A web presentation with transitions and speaker view Pandoc with reveal.js
Live code, animations and components in a technical talk Slidev
Heavy custom layout, animation timing or design work A traditional slide app

Markdown slides are good at text, lists, code, images and simple tables. They are weak at precise placement: anything that needs an element dragged to a spot on the slide is easier in PowerPoint, Keynote or Google Slides.

What makes Markdown slides easy to reuse?

A few habits make Markdown decks easier to build and to reuse:

  • One idea per slide. If a slide needs more than five bullets, split it at a ---.
  • Keep images next to the file. Put them in an images folder and use relative paths, so the deck works on any computer.
  • Write speaker notes in the file. HTML comments in Marp, ::: notes in Pandoc. The notes then travel with the slides.
  • Reuse by copying files. Keep a folder of past decks; a new talk often starts as a copy of an old .md file.
  • Keep code short. Show only the lines that matter and link to the full file; a long code block either shrinks to an unreadable size or runs off the slide.
  • Check one export early. Build the PDF or PowerPoint once at the start, so a missing browser or font doesn't surprise you before the talk.

For classes and lectures, the teachers use case covers keeping lesson material as Markdown files that also produce handouts.

Common questions

Can you present Markdown slides offline?

Yes. Marp's HTML output carries its own styles and scripts, so it opens in a browser without a connection as long as the images are local files. A PDF export works anywhere. For Pandoc's reveal.js output, use a downloaded copy of reveal.js as described above.

Can you turn an existing PowerPoint deck into Markdown?

Yes, as a starting point. MarkItDown converts a .pptx file with markitdown deck.pptx -o deck.md, writing each slide's text, tables and notes in order with a comment marking each slide. Add --- between slides and a front matter block, and the file is ready for Marp. Layout and animation do not convert.

Markdown slides in Noteline

Noteline, which we make, is a place to write the deck, not a slide tool: it doesn't present or export slides. You can write slides.md in it with headings, lists, tables and code blocks shown formatted as you type, insert a --- slide divider with Cmd+Shift+H (Ctrl+Shift+H on Windows and Linux), and switch to the raw source with Cmd+Shift+M (Ctrl+Shift+M) to check the separators and comments. Then build the same file with Marp, Pandoc or Slidev using the commands above. Images in the file show as their alt text in the editor, so check placement in the slide preview.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Markdown horizontal rules
  • Markdown front matter
  • Markdown for teachers
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io