Marp support
Thanks for the excellent app, and for the very responsive workflow!
I've been using markpad in the past weeks, moving away from VS Code as I prefer a clean/simple/unbloated app and from MarkText because it was constantly failing and I realized there were security issues.
One thing I miss is support to generate/present Marp presentations. I realize this is a big undertaking and perhaps not in line with "notepad for markdown", but I thought it would be something useful for the community.
Marp is currently integrated on a CLI or as a VS Code extension.
Thanks for this — and for naming the tension yourself in the last paragraph, because that is exactly where it lands. I went and looked at what supporting Marp would actually take rather than answering from the tagline, and the answer turned out to be more specific than "not in line with notepad for markdown".
Why it is cheap in VS Code and not here
marp-vscode is a small extension, but it stands on three pieces of infrastructure that VS Code has and Markpad deliberately does not.
1. The preview engine is the same engine Marp is written for.
VS Code renders Markdown preview with markdown-it, and exposes an official extension point for reaching into it:
// marp-vscode package.json
"contributes": {
"markdown.markdownItPlugins": true,
"markdown.previewScripts": ["./preview/preview.js"],
"markdown.previewStyles": ["./marp-vscode.css"]
}
// src/extension.ts
import { Marp } from '@marp-team/marp-core'
...
return { extendMarkdownIt: getExtendMarkdownIt({ subscriptions }) }
marp-core is a set of markdown-it plugins, so the extension hands VS Code's own parser back with Marp mixed in. One parser, start to finish.
Markpad renders with comrak, in Rust. There is no plugin seam between comrak and marp-core — they are not the same ecosystem. Supporting Marp here would mean running a second Markdown parser alongside the first, with two implementations disagreeing about the same document over time. The repo has been moving the other way: #523 replaced two hand-rolled regex parsers with comrak's own, specifically to keep the number of things that parse Markdown at one.
2. VS Code extensions run in Node.
marp-vscode simply depends on @marp-team/marp-cli, which drives Chromium via puppeteer to produce PDF and PPTX. Markpad is a Tauri app with no Node runtime, so that route is closed.
(Amusingly this is the one part that would not be hard. Markpad's PDF export prints the live DOM through the webview, so it never needed puppeteer. If slides existed as DOM, PDF would be close to free. The cost is all in getting there — see 1.)
3. VS Code is a platform; a plugin API is something it owes its users.
Markpad has no extension system, and adding one to carry a single format would change what the app is — which is, I suspect, close to the reason you moved here from VS Code in the first place.
The good news: you can already write Marp here
Marp's syntax is all valid CommonMark, and it reads cleanly in Markpad today:
| Marp construct | what Markpad does with it |
|---|---|
marp: true, theme: gaia in front matter |
listed in the front-matter panel |
<!-- _class: lead --> and other directives |
HTML comments — rendered as raw HTML, so invisible in the preview, not noise in your text |
--- slide separators |
horizontal rules, which happen to read as section breaks |
So the workflow that works right now is: write and edit the deck in Markpad, and run marp deck.md --pdf (or --pptx, or -s for the live preview server) when you want slides. Markpad stays the editor; the .md file is the interface between the two tools.
Closing this as not planned
Not because it is a bad idea — it is a good one, and clearly stated — but because the thing that would make it possible (a second renderer, a plugin surface, a bundled Node runtime) is the same thing that would stop Markpad being the app you switched to. Closing rather than leaving it open indefinitely feels more honest than parking it.
If Marp ever grows a Rust implementation, or comrak grows a compatible plugin model, the calculus changes and this is worth reopening. Happy to be pointed at either.
One practical addition, since "write it in Markpad, export with marp-cli" undersells how well the split actually works.
You don't have to write in Marp format from the start. Draft the content normally — plain headings, prose, lists — and turn it into a deck at the end. That last step is mostly mechanical, and it is the kind of thing an LLM does well because both sides are plain text:
- add the front matter (
marp: true,theme:,paginate: true) - insert
---breaks where the content actually divides - compress paragraphs into points that fit a slide
- add directives like
<!-- _class: lead -->for the title slide
And it tends to fix things on the way through — inconsistent heading levels, mixed list markers, code fences missing a language, reference-style links that drifted. Formatting cleanup you were going to do by hand anyway.
Worth saying why this works better than the "generate a PPTX" version of the same idea: a Marp deck is just Markdown. The model reads text and writes text, you diff the result in Markpad, and you can reject the parts you disagree with line by line. Nothing rides on a binary format nobody can review.
So the shape ends up being:
Markpad write and read the content — no slide constraints while drafting
↓ .md
LLM pass restructure into Marp + clean up formatting (optional, reviewable)
↓ .md
marp-cli marp deck.md --pdf (or --pptx, or -s to present live)
Which is, honestly, a decent argument for keeping these as separate tools rather than one app: drafting and slide layout are different jobs, and Markpad being unopinionated about the second is what lets you postpone it until the writing is done.