Astlide 可將 Markdown 簡報套用公司 PowerPoint 模板並匯出可編輯 PPTX
Markdown slides in your company's PowerPoint template, exported as editable PPTX
Astlide 是一款 Astro 簡報整合工具,讓用戶以 MDX、Markdown 或純 HTML 編寫投影片,套用 PowerPoint 模板並匯出可編輯的 PPTX 或 PDF。
If you write slides in Markdown, you probably know this moment: the talk is done, and someone asks for "the deck" so they can reuse two slides in their own presentation. In the company template. In PowerPoint.
Slidev and Marp can produce a .pptx file, but not one in the template your company already has, with its title slide, its section headers and its footer. Quarto can start from a reference template, but only with a fixed set of its layouts. So the slides often get rebuilt by hand, and the Markdown version stops being the source of truth.
I've been building Astlide to close that gap. It's an MIT-licensed Astro integration for slides: you write decks in MDX, Markdown or plain HTML, present them in the browser, and export them to PDF or to PowerPoint files anyone can edit, in your own template.
r-hashi01
/
astlide
Slides that live in your Astro site: write decks in MDX or Markdown, use your PowerPoint template as a theme, export editable PPTX and PDF.
Astlide
Slides that live in your Astro site.
Astlide is an Astro integration for presentations. Write slides in MDX, Markdown or plain HTML, present them in the browser, and export them to PDF or to PowerPoint files anyone can edit.
📖 Documentation: https://astlide.dev/ · 🎬 Live demo: https://astlide.dev/demo/tour/1/ · 🇯🇵 日本語ドキュメント
Why Astlide
-
Keep every deck in one site. A deck is a folder under
src/content/decks/. Talks, weekly reports and training decks sit side by side: they share themes and components, deploy together and get an index page. Most slide tools give you one project per deck. -
Add it to the site you already have.
astlide()is an Astro integration, so it works in a blog, a Starlight docs site or any other Astro project. Some parts also work on their own: the deck loader, PowerPoint import and templates (@astlide/core/pptx), and the layout engine (@astlide/core/engine). - …
Register the template as a theme
A .pptx, .potx or .thmx file becomes a theme with one line of config:
// astro.config.mjs
import astlide from "@astlide/astro";
import { defineConfig } from "astro/config";
export default defineConfig({
integrations: [
astlide({
templates: { brand: "./templates/brand.pptx" },
}),
],
});
Then a deck picks it up by name:
{ "title": "Q3 review", "theme": "brand" }
That's the deck's _config.json. From there you keep writing Markdown:
---
slideLayout: default
---
# What we shipped
- Import PowerPoint
- Templates as themes
The heading goes into the layout's title placeholder and the rest into the body placeholder, with the placeholder's font, size, color and position. The background artwork, theme colors, fonts and slide numbers come from the template too.
Astlide's built-in layouts map to the template's own layouts:
slideLayout |
Template layout |
|---|---|
cover |
Title Slide |
section |
Section Header |
default |
Title and Content |
two-column |
Two Content |
code |
Title Only |
In a .mdx slide, <Left> and <Right> fill the two content placeholders of the Two Content layout, keeping the gap the designer set:
---
slideLayout: two-column
---
# Before and after
<Left>
- Copy the deck, delete the slides
- Paste text into placeholders
- Fix the fonts again
</Left>
<Right>
- `astlide({ templates: { brand: "./templates/brand.pptx" } })`
- `"theme": "brand"`
- Write Markdown
</Right>
Any other layout in the template is available by name, too: slideLayout: comparison, slideLayout: title-only, and so on. Google Slides templates work the same way after File → Download → Microsoft PowerPoint.
Export: real text boxes, not pictures
bunx astlide export q3-review --pptx
The PPTX export writes text boxes, tables and shapes that you can edit in PowerPoint, and your speaker notes go into the notes pane. Fonts loaded by the theme are embedded in the file.
Astlide lays the slides out with its own engine, so this step needs no browser and no LibreOffice. It runs anywhere Node or Bun runs, CI included. PDF and PNG export do use a headless Chromium (bunx playwright install chromium once).
It also works the other way: drop an existing .pptx into a deck folder and its pages show up as slides, or run astlide import to turn it into HTML slides you can edit.
The rest of it
Templates are the reason I'd point someone at Astlide, but it's a full slide tool:
-
Many decks in one site. Each folder under
src/content/decks/is a deck. Talks, weekly reports and training material share themes and components, deploy together and get an index page. - It lives in the Astro site you already have. A blog or a Starlight docs site can host its decks next to its other pages. React, Vue, Svelte, Solid and Preact components work on slides and stay interactive.
-
Every slide is a static page.
/my-talk/7loads on its own, so you can link to a single slide and host it anywhere, including a GitHub Pages sub-path. - Presenting: a presenter window with notes, the next slide and a timer; overview, go-to-slide, pen and laser pointer, each one key away.
-
Code and diagrams: Shiki highlighting that steps through lines with
{1|3-5|all}, step-by-step reveals with<Fragments>, Mermaid and KaTeX. -
Mix formats. One deck can combine
.mdx,.mdand.htmlslides. HTML is rendered as written, which helps when you paste markup from an AI tool. -
Next.js and Nuxt.
@astlide/nextand@astlide/nuxtserve the same deck folders. Template themes are Astro-only for now.
There's also an MCP server for coding agents. It can read a template's layouts, find text that overflows a slide and export the deck:
claude mcp add astlide -- bunx astlide mcp
Try it
bun create astlide my-slides
cd my-slides
bun install
bun run dev
Or click through the live demo first. The docs cover templates, export and the rest.
What it can't do yet
Astlide started in February 2026, so there are far fewer themes, plugins and users than Slidev or reveal.js have. On templates specifically:
- Slides are 16:9. A 4:3 template is centered, with its background color on the sides.
- Picture, chart and table placeholders stay empty, and so do date and footer placeholders.
- In the exported PPTX, the template's artwork is drawn as shapes on each slide rather than kept as a slide master.
I'd like to hear how it goes
I've built this mostly on my own, so I don't know yet where it breaks for other people. If you try it, tell me what worked and what didn't in GitHub Discussions. A company template that comes out wrong is especially useful, even as a screenshot.
來源:DEV Community · dev.to



