Skip to main content

mdpres

Markdown to HTML presentation generator.

Installation

# Clone the repository
git clone <repo-url>
cd html-presentation

# Install dependencies
uv sync

Quick Start

# Create an example presentation
uv run mdpres example

# Build HTML
uv run mdpres build example.md

# Open in browser
open example.html

Usage

Commands

# Build presentation
uv run mdpres build slides.md

# With output file and theme
uv run mdpres build slides.md -o presentation.html --theme nord

# Create example file
uv run mdpres example

# List available themes
uv run mdpres themes

Markdown Format

Slides are separated by horizontal rule ---:

---
title: Presentation Title
author: Author Name
---

# Title

First slide (title slide)

---

## Second Slide

- Item 1
- Item 2
- Item 3

---

## Code

```python
def hello(name):
    return f"Hello, {name}!"

Diagram

graph LR
    A[Input] --> B[Process]
    B --> C[Output]

### Supported Elements

| Element | Syntax |
|---------|--------|
| Headers | `# H1`, `## H2`, `### H3` |
| Bold | `**text**` or `__text__` |
| Italic | `*text*` or `_text_` |
| Code | `` `code` `` |
| Links | `[text](url)` |
| Images | `![alt](url)` |
| Lists | `- item` or `1. item` |
| Blockquotes | `> quote` |
| Code blocks | ` ```language ... ``` ` |
| Mermaid | ` ```mermaid ... ``` ` |

### Slide Directives

Add HTML comments to customize slides:

```markdown
<!-- class: centered special -->
<!-- type: custom -->

# Slide with classes

Themes

Theme Description
dark Dark theme (default)
light Light theme
nord Nordic color palette
dracula Popular dark theme
uv run mdpres build slides.md --theme dracula

Presentation Navigation

Key Action
Right / Space / PageDown Next slide
Left / PageUp Previous slide
Home First slide
End Last slide
f Toggle fullscreen

On mobile devices use swipe gestures.

Development

# Install dev dependencies
uv sync

# Run tests
uv run pytest

# Linter
uv run ruff check .

# Format code
uv run ruff format .

# Type checking
uv run pyrefly check

License

MIT

Release files for mdpres 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdpres 0.1.0
File Size Uploaded
mdpres-0.1.0.tar.gz 34.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdpres 0.1.0
File Interpreter ABI Platform
mdpres-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 44.0 kB

Release files / mdpres-0.1.0.tar.gz

Download URL mdpres-0.1.0.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a979d6d078ecc314cdb8a51ec8345a5d9ea5191128e52d102a243b77a6412439
BLAKE2b-256 checksum
How to use checksums
e1cd7b40a0de4ea157fc614235dd0541c5ce1dfb699616f18b3ca610e957c155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / mdpres-0.1.0-py3-none-any.whl

Download URL mdpres-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4173b08d19d52a89fd0a0289d02c81bd20a13ba152b8b4403ae97ae3daafe14
BLAKE2b-256 checksum
How to use checksums
bb1c403b08065bd5eb8d053d75e70e3a854fd084da5034a8dd1651dbe11741d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page