Skip to main content

A Python tool for converting PowerPoint .pptx files to Marp Markdown

Project description

PPTX to Marp Converter

A Python-based converter for turning Microsoft PowerPoint .pptx files into Marp-compatible Markdown.

Features

  • Convert slide text into Markdown
  • Marp frontmatter generation (marp: true, paginate: true)
  • Slide separator generation (---)
  • Export picture shapes into assets/
  • Convert simple tables to Markdown tables
  • Command line interface
  • Batch conversion with wildcard support
  • Project packaging with pyproject.toml
  • GitHub Action for release and PyPI publish

Installation

Install from source

git clone https://github.com/HNRobert/pptx2marp.git
cd pptx2marp
pip install -e .

Install only runtime dependency

pip install python-pptx

Usage

Command line tool

After installation, use pptx2marp:

# Convert a single file
pptx2marp demo.pptx

# Convert and write to output file
pptx2marp demo.pptx -o demo.md

# Batch conversion to output directory
pptx2marp *.pptx -o out/

# Override Marp title field
pptx2marp demo.pptx -o demo.md -t "Team Weekly Report"

# Verbose logs
pptx2marp demo.pptx -v

Python script entry

python main.py demo.pptx -o demo.md

Output structure

With default behavior, converting slides.pptx creates:

slides/
	slides.md
	assets/
		slide001_img01.png
		slide002_img01.jpg

If a slide contains no extractable content, converter outputs:

<!-- empty slide -->

Development

Build distribution artifacts:

python -m pip install --upgrade build
python -m build --sdist --wheel

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pptx2marp-0.0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pptx2marp-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pptx2marp-0.0.1.tar.gz.

File metadata

  • Download URL: pptx2marp-0.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pptx2marp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f9c8fceb1bea453a7f6ff8a88ddd64c8217c187d0291a503218c74d3920d507c
MD5 9a24d67f0bcf3b273c81ee0d6a39ac8d
BLAKE2b-256 4207474b5289c8c974810a51b5b27fd3e9d408a3a282009c23fa2fcd9fed02fa

See more details on using hashes here.

File details

Details for the file pptx2marp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pptx2marp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pptx2marp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82ae3dcd18446dcdea90a007a5ceb1d81b3027852cb53b9a3ebc16d46b4b2a92
MD5 ecaa4b4899614d9cdbd15fb5db291c5b
BLAKE2b-256 cc1f832774bbe011c41ac44857ce658544c4093c972d2b466d42f4d6f2814e84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page