Skip to main content

Converts markdown files to PowerPoint presentations

Project description

mdtopptx

mdtopptx is a Python library that makes it easy to convert markdown text into compelling PowerPoint presentations. It allows you to create slides with rich formatting, bullet points, images, and hyperlinks directly from your markdown code.

Features

  • Convert markdown to PowerPoint slides with ease.
  • Support for text formatting (bold, italic, underline, color).
  • Add bullet points for clarity and organization.
  • Insert images from URLs to enhance presentations.
  • Embed hyperlinks to provide context and further references.

Installation

You can install the mdtopptx package from PyPI using pip:

pip install mdtopptx

Usage Examples

Here's a simple example of how you can use the mdtopptx library to convert markdown text into a PowerPoint presentation:

from mdtopptx import parse_markdown, create_ppt

# Example Markdown input
markdown_text = """
## Slide 1 (title box)

This is the first slide of my presentation.

* Bullet point 1
* Bullet point 2

---

## Slide 2 (title box)

This is the second slide.

**Bold text** and *italic text*.

Inline code: `code snippet`

<color:#FF0000>Red text</color>

---

## Slide 3 (title box)

![Image name](https://www.example.com/image.png)

[google](https://www.google.com)
"""

# Parse the markdown text and create the PowerPoint presentation
parsed_slides = parse_markdown(markdown_text)
create_ppt(parsed_slides, 'output_presentation.pptx')

Slides must be delimited by a blank line followed by --- followed by a blank line. When rendered as markdown --- will be a horizontal rule. If you need a horizontal rule in your slides, use *** or ___ instead.

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

mdtopptx-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mdtopptx-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mdtopptx-0.1.0.tar.gz.

File metadata

  • Download URL: mdtopptx-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mdtopptx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9674b0b923d21a280ebf051df1eeaa5e4128311a2a3db3a38dd8f137cdc032e5
MD5 3c7c253d58bc0bffe49b703a296c2b57
BLAKE2b-256 52e7169f42e21d0e65268bdc58383716cddd8ac22158f3cc744d02624caf52f9

See more details on using hashes here.

File details

Details for the file mdtopptx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mdtopptx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mdtopptx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70160d0cd5a43a479d2dede9fdecc2ad4bf9a4464490eb5e0731923a88cf035b
MD5 f628c1d56ab33cdc5529ebc02009d242
BLAKE2b-256 ec0ed0b6c04da23037306f4a720da17c3c154fd355a357362582c1408d607e21

See more details on using hashes here.

Supported by

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