Convert constrained Markdown slide decks into editable PowerPoint presentations.
Project description
markdown-pptx
markdown-pptx is a Markdown-to-PowerPoint CLI for both people and agents. You can use it directly from the terminal, but the format and CLI are intentionally designed to be easy for coding agents to use reliably, and this extends their natural strength with Markdown into generating real, editable PowerPoint slides instead of plain text outlines or ad hoc exports.
It converts constrained Markdown slide decks into editable PowerPoint .pptx presentations using real PowerPoint layouts and placeholders. The format is intentionally strict: each # H1 starts a slide, YAML front matter controls document and slide behavior, and the tool exposes inspection-friendly modes like --syntax, --list-layouts, and --list-color-schemes while failing on ambiguous mappings instead of inventing free-positioned text boxes.
Install
Run directly with uvx
uvx markdown-pptx --help
Install as a tool
uv tool install markdown-pptx
CLI
markdown-pptx deck.md
markdown-pptx deck.md out.pptx
markdown-pptx deck.md --ignore-document-colors
markdown-pptx deck.md --ignore-document-colors --ignore-slide-colors
markdown-pptx --list-layouts
markdown-pptx --list-color-schemes
markdown-pptx --syntax
When you use --template, the template's existing theme colors and theme fonts are kept unless the markdown explicitly sets color_scheme or fonts.
--ignore-document-colors ignores document-level markdown color settings (color_scheme, title_color, body_color, and non-image document backgrounds). --ignore-slide-colors ignores slide-level title_color, body_color, and non-image slide backgrounds. Use both flags together to let the template provide all colors while still keeping the markdown content and layouts.
Format
Document structure
- An optional document front matter block may appear only at the top of the file.
- Each
# H1starts a new slide. - An optional slide front matter block may appear only immediately after an
# H1. - Everything until the next
# H1is that slide's body content.
Example deck
---
aspect_ratio: "16:9"
fonts:
body: Aptos
headings: Aptos Display
color_scheme:
preset: Office
title_color: "var(--dark-1)"
body_color: "var(--dark-1)"
background: "linear-gradient(90deg, var(--light-1) 0%, var(--light-2) 100%)"
---
# Title slide
---
layout: Title Slide
notes: |
Introduce the deck.
---
Markdown in. Editable PowerPoint out.
# Overview
---
layout: Title and Content
background: "linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 100%)"
---
## Goals
- Keep the markdown readable
- Use real PowerPoint placeholders
- Fail on ambiguous mappings
Document-level front matter
These keys are valid only in the opening front matter block at the top of the document:
aspect_ratio"16:9"or"4:3"
fontsbodyheadings
color_schemepreset: Office- or explicit overrides for the 12 PowerPoint theme colors
background- solid color
linear-gradient(...)radial-gradient(...)url(...)none
title_color- default color for title placeholders across the deck
body_color- default color for body/subtitle placeholders across the deck
Document front matter example
---
aspect_ratio: "16:9"
fonts:
body: Aptos
headings: Aptos Display
color_scheme:
preset: Office
title_color: "var(--dark-1)"
body_color: "var(--accent-4)"
background: "linear-gradient(90deg, var(--light-1) 0%, var(--light-2) 100%)"
---
Slide-level front matter
These keys are valid only immediately after a slide # H1:
layoutTitle SlideTitle and ContentSection HeaderTitle OnlyBlank
background- overrides the document background for that slide
title_color- overrides the document title color for that slide
body_color- overrides the document body color for that slide
hide_background_graphics- hides inherited master graphics on that slide
notes- speaker notes stored in the PPTX notes pane
Slide front matter example
# Section break
---
layout: Section Header
background: "linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 100%)"
title_color: "var(--light-1)"
body_color: "var(--light-1)"
notes: |
Introduce the next section.
---
This subtitle is rendered into the Section Header body/subtitle placeholder.
Supported color syntax
For title_color, body_color, and color-bearing backgrounds/gradient stops:
- Hex:
#0E2841 - RGB:
rgb(14, 40, 65) - HSL:
hsl(210, 65%, 15%) - Theme references:
var(--dark-1)var(--light-1)var(--dark-2)var(--light-2)var(--accent-1)throughvar(--accent-6)var(--hyperlink)var(--followed-hyperlink)
Supported markdown
- Paragraphs
- Bullet lists
- Ordered lists
- Nested lists up to three levels
##through######headings inside a slide- Emphasis, strong, inline code, links
- Fenced code blocks
- Blockquotes
- Pipe tables
- Local images
- Remote images
Layout and rendering rules
Blankrequires an empty title and empty body.Title Onlyallows no body content.Title SlideandSection Headerrender slide body text into the subtitle/body placeholder.Title and Contentsupports either text flow, one image, or one table.- Missing required placeholders are treated as errors.
- The renderer uses real PowerPoint placeholders rather than synthesized text boxes for title/body content.
Unsupported markdown/features
- Setext headings
- Indented code blocks
- Raw HTML
- Task lists
- Footnotes
- Arbitrary positioning
- Layered backgrounds
- Animations
Examples
- Sample source deck:
sample/showcase.md - Sample rendered deck:
sample/showcase.pptx - Sample local image:
sample/showcase-local.png
Development
Run tests:
uv run pytest
Build distributables:
uv build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdown_pptx-1.0.2.tar.gz.
File metadata
- Download URL: markdown_pptx-1.0.2.tar.gz
- Upload date:
- Size: 423.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b25e79fb74e68fd122355d937a9ad82530ad7450afcc3b9328b4fbda21dfa2
|
|
| MD5 |
be1b948ee994906e9986d07f81fbd90b
|
|
| BLAKE2b-256 |
3687810b1dfbb8265d8f9179c5a5d71e789bb3b8475a7a160876783606e115ae
|
Provenance
The following attestation bundles were made for markdown_pptx-1.0.2.tar.gz:
Publisher:
publish-pypi.yml on pseudosavant/markdown-pptx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdown_pptx-1.0.2.tar.gz -
Subject digest:
c4b25e79fb74e68fd122355d937a9ad82530ad7450afcc3b9328b4fbda21dfa2 - Sigstore transparency entry: 1355420906
- Sigstore integration time:
-
Permalink:
pseudosavant/markdown-pptx@eb06ae2cf2f85329570b434a34e4359954aaf85a -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/pseudosavant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@eb06ae2cf2f85329570b434a34e4359954aaf85a -
Trigger Event:
release
-
Statement type:
File details
Details for the file markdown_pptx-1.0.2-py3-none-any.whl.
File metadata
- Download URL: markdown_pptx-1.0.2-py3-none-any.whl
- Upload date:
- Size: 69.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14543cb4e7bc5f5258a0e56839d6e1d690e3c90d7bc6b424b6f4bc43611f8147
|
|
| MD5 |
77e9bcaaeaa8adcb9f1b7f696132ae7c
|
|
| BLAKE2b-256 |
5468b8db25e1c31ea5af3c430aa209f455b36289284d7d4689e8234b81483f67
|
Provenance
The following attestation bundles were made for markdown_pptx-1.0.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on pseudosavant/markdown-pptx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdown_pptx-1.0.2-py3-none-any.whl -
Subject digest:
14543cb4e7bc5f5258a0e56839d6e1d690e3c90d7bc6b424b6f4bc43611f8147 - Sigstore transparency entry: 1355421037
- Sigstore integration time:
-
Permalink:
pseudosavant/markdown-pptx@eb06ae2cf2f85329570b434a34e4359954aaf85a -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/pseudosavant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@eb06ae2cf2f85329570b434a34e4359954aaf85a -
Trigger Event:
release
-
Statement type: