ppt_rs/cli/markdown/mod.rs
1//! Markdown to PowerPoint conversion
2//!
3//! This module provides functionality to parse markdown content
4//! and convert it into PowerPoint slide structures.
5//!
6//! # Supported Features
7//!
8//! - **Headings**: `#` creates new slides
9//! - **Bullet points**: `-`, `*`, `+` create bullet lists
10//! - **Numbered lists**: `1.`, `2.` create numbered lists
11//! - **Tables**: GFM-style tables with header styling
12//! - **Code blocks**: Fenced code blocks with syntax highlighting
13//! - **Mermaid diagrams**: Visual placeholders for 12 diagram types
14//! - **Inline formatting**: Bold, italic, inline code
15//! - **Images**: Placeholder shapes for images
16//! - **Horizontal rules**: Create slide breaks
17//! - **Speaker notes**: Blockquotes become speaker notes
18
19mod mermaid;
20mod parser;
21
22pub use mermaid::MermaidType;
23pub use parser::parse;
24
25/// Parse markdown content into slides (convenience re-export)
26pub fn parse_markdown(content: &str) -> Result<Vec<crate::generator::SlideContent>, String> {
27 parser::parse(content)
28}