pptx
Markdown转PPTX(支持Mermaid图表和品牌定制)的专业技能。用于需要从Markdown生成PPTX时使用。
📖 中文导读:Markdown转PPTX(支持Mermaid图表和品牌定制)的专业技能。用于需要从Markdown生成PPTX时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: pptx description: Specialized skill for converting Markdown documents into PowerPoint presentations (PPTX) with support for Mermaid diagrams and branding. Use this when asked to generate PPTX from Markdown.
PPTX Generator Skill
Overview
The PPTX Generator is a specialized skill for converting Markdown documents into professional PowerPoint presentations (PPTX). It leverages PowerShell scripting and Pandoc to produce slide-based deliverables, with optional Mermaid diagram processing.
Purpose
- Convert Markdown to PPTX format
- Process Mermaid diagrams into images for slides
- Apply basic branding or templates if available
- Generate presentation-ready files
Scope
- Input: Markdown files with optional Mermaid diagrams
- Output: PPTX presentation
- Integration: PowerShell-based conversion with Pandoc
Key Features
- PPTX Conversion: Direct Markdown to PowerPoint
- Mermaid Processing: Automatic diagram-to-image conversion
- Slide Generation: Markdown headers become slides
- Resource Handling: Images and diagrams embedded
Inputs
- Markdown file path
- Output path for PPTX
- Optional: Template for PPTX
Outputs
- Generated PPTX file
- Processed images/diagrams
Process Flow
- Validate input Markdown file
- Process Mermaid diagrams if present
- Convert using Pandoc to PPTX
- Handle resource paths
Usage
Invoke to create PPTX presentations from Markdown. Output folder is automatically determined: uses ~/project-root/docs/Analysis/outputs if it exists, otherwise the input file's directory.
Example:
.\convert-document.ps1 -InputFile 'MacroFlow-Analysis.md' -Formats pptx
Or specify custom output:
.\convert-document.ps1 -InputFile 'MacroFlow-Analysis.md' -Formats pptx -OutputFolder 'custom'
Dependencies
- Pandoc installed
- PowerShell execution
- Mermaid CLI (optional)