{"data":{"slug":"github-claude-office-skills-skills-html-to-ppt-db855d3b1bee","title":"HTML to PowerPoint Conversion with Marp","summary":"Convert HTML or Markdown content to professional PowerPoint presentations using Marp. The deliverable is a PowerPoint (.pptx) file, with optional outputs in PDF or HTML format.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-html-to-ppt-db855d3b1bee","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-html-to-ppt-db855d3b1bee","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-html-to-ppt-db855d3b1bee.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-html-to-ppt-db855d3b1bee\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure Marp is installed and verify the version with `marp --version`. Provide structured Markdown content with slide separators (`---`) for optimal results. Custom themes and styling can be specified, but complex animations and some PowerPoint-specific features are not supported.","instructions":"---\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\n# Basic Information\nname: html-to-ppt\ndescription: \"Convert HTML\/Markdown to PowerPoint presentations using Marp\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: conversion\ntags:\n  - html\n  - pptx\n  - conversion\n  - slides\ndepartment: All\n\n# AI Model Compatibility\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n  compatible:\n    - claude-3-5-sonnet\n    - gpt-4\n    - gpt-4o\n\n# MCP Tools Integration\nmcp:\n  server: office-mcp\n  tools:\n    - pptx_to_html\n\n# Skill Capabilities\ncapabilities:\n  - html_conversion\n  - slide_generation\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# HTML\/Markdown to PowerPoint Skill\n\n## Overview\n\nThis skill enables conversion from Markdown or HTML to professional PowerPoint presentations using **Marp** (Markdown Presentation Ecosystem). Create beautiful, consistent slides using simple Markdown syntax with CSS-based themes.\n\n## How to Use\n\n1. Provide Markdown content structured for slides\n2. Optionally specify a theme or custom styling\n3. I'll convert it to PowerPoint, PDF, or HTML slides\n\n**Example prompts:**\n- \"Convert this markdown to a PowerPoint presentation\"\n- \"Create slides from this outline using Marp\"\n- \"Turn my notes into a presentation with the gaia theme\"\n- \"Generate a PDF slide deck from this markdown\"\n\n## Domain Knowledge\n\n### Marp Fundamentals\n\nMarp uses a simple syntax where `---` separates slides:\n\n```markdown\n---\nmarp: true\ntheme: default\n---\n\n# Slide 1 Title\n\nContent for first slide\n\n---\n\n# Slide 2 Title\n\nContent for second slide\n```\n\n### Command Line Usage\n\n```bash\n# Convert to PowerPoint\nmarp slides.md -o presentation.pptx\n\n# Convert to PDF\nmarp slides.md -o presentation.pdf\n\n# Convert to HTML\nmarp slides.md -o presentation.html\n\n# With specific theme\nmarp slides.md --theme gaia -o presentation.pptx\n```\n\n### Slide Structure\n\n#### Basic Slide\n```markdown\n---\nmarp: true\n---\n\n# Title\n\n- Bullet point 1\n- Bullet point 2\n- Bullet point 3\n```\n\n#### Title Slide\n```markdown\n---\nmarp: true\ntheme: gaia\nclass: lead\n---\n\n# Presentation Title\n\n## Subtitle\n\nAuthor Name\nDate\n```\n\n### Frontmatter Options\n\n```yaml\n---\nmarp: true\ntheme: default          # default, gaia, uncover\nsize: 16:9              # 4:3, 16:9, or custom\npaginate: true          # Show page numbers\nheader: 'Company Name'  # Header text\nfooter: 'Confidential'  # Footer text\nbackgroundColor: #fff\nbackgroundImage: url('bg.png')\n---\n```\n\n### Themes\n\n#### Built-in Themes\n```markdown\n---\nmarp: true\ntheme: default   # Clean, minimal\n---\n\n---\nmarp: true\ntheme: gaia      # Colorful, modern\n---\n\n---\nmarp: true\ntheme: uncover   # Bold, presentation-focused\n---\n```\n\n#### Theme Classes\n```markdown\n---\nmarp: true\ntheme: gaia\nclass: lead     # Centered title slide\n---\n\n---\nmarp: true\ntheme: gaia\nclass: invert   # Inverted colors\n---\n```\n\n### Formatting\n\n#### Text Styling\n```markdown\n# Heading 1\n## Heading 2\n\n**Bold text** and *italic text*\n\n`inline code`\n\n> Blockquote for emphasis\n```\n\n#### Lists\n```markdown\n- Unordered item\n- Another item\n  - Nested item\n\n1. Ordered item\n2. Second item\n   1. Nested numbered\n```\n\n#### Code Blocks\n```markdown\n# Code Example\n\n\\`\\`\\`python\ndef hello():\n    print(\"Hello, World!\")\n\\`\\`\\`\n```\n\n#### Tables\n```markdown\n| Feature | Status |\n|---------|--------|\n| Tables  | \u2705     |\n| Charts  | \u2705     |\n| Images  | \u2705     |\n```\n\n### Images\n\n#### Basic Image\n```markdown\n![](image.png)\n```\n\n#### Sized Image\n```markdown\n![width:500px](image.png)\n![height:300px](image.png)\n![width:80%](image.png)\n```\n\n#### Background Image\n```markdown\n---\nmarp: true\nbackgroundImage: url('background.jpg')\n---\n\n# Slide with Background\n```\n\n### Advanced Layout\n\n#### Two Columns\n```markdown\n---\nmarp: true\nstyle: |\n  .columns {\n    display: grid;\n    grid-template-columns: repeat(2, 1fr);\n    gap: 1rem;\n  }\n---\n\n# Two Column Layout\n\n<div class=\"columns\">\n<div>\n\n## Left Column\n- Point 1\n- Point 2\n\n<\/div>\n<div>\n\n## Right Column\n- Point A\n- Point B\n\n<\/div>\n<\/div>\n```\n\n#### Split Background\n```markdown\n---\nmarp: true\ntheme: gaia\nclass: gaia\n---\n\n<!-- \n_backgroundImage: linear-gradient(to right, #4a90a4, #4a90a4 50%, white 50%)\n-->\n\n<div class=\"columns\">\n<div style=\"color: white;\">\n\n# Dark Side\n\n<\/div>\n<div>\n\n# Light Side\n\n<\/div>\n<\/div>\n```\n\n### Directives\n\n#### Local Directives (per slide)\n```markdown\n---\nmarp: true\n---\n\n<!-- \n_backgroundColor: #123\n_color: white\n_paginate: false\n-->\n\n# Special Slide\n```\n\n#### Scoped Styles\n```markdown\n---\nmarp: true\n---\n\n<style scoped>\nh1 {\n  color: red;\n}\n<\/style>\n\n# This Title is Red\n```\n\n### Python Integration\n\n```python\nimport subprocess\nimport tempfile\nimport os\n\ndef markdown_to_pptx(md_content, output_path, theme='default'):\n    \"\"\"Convert Markdown to PowerPoint using Marp.\"\"\"\n    \n    # Add marp directive if not present\n    if '---\\nmarp: true' not in md_content:\n        md_content = f\"---\\nmarp: true\\ntheme: {theme}\\n---\\n\\n\" + md_content\n    \n    # Write to temp file\n    with tempfile.NamedTemporaryFile(mode='w', suffix='.md', delete=False) as f:\n        f.write(md_content)\n        temp_path = f.name\n    \n    try:\n        # Convert using marp\n        subprocess.run([\n            'marp', temp_path, '-o', output_path\n        ], check=True)\n        \n        return output_path\n    finally:\n        os.unlink(temp_path)\n\n# Usage\nmd = \"\"\"\n# Welcome\n\nIntroduction slide\n\n---\n\n# Agenda\n\n- Topic 1\n- Topic 2\n- Topic 3\n\"\"\"\n\nmarkdown_to_pptx(md, 'presentation.pptx')\n```\n\n### Node.js\/marp-cli API\n\n```javascript\nconst { marpCli } = require('@marp-team\/marp-cli');\n\n\/\/ Convert file\nmarpCli(['slides.md', '-o', 'output.pptx']).then(exitCode => {\n    console.log('Done:', exitCode);\n});\n```\n\n## Best Practices\n\n1. **One Idea Per Slide**: Keep slides focused\n2. **Use Visual Hierarchy**: Consistent heading levels\n3. **Limit Text**: 6 bullets max per slide\n4. **Include Images**: Visual content enhances retention\n5. **Test Output**: Preview before final export\n\n## Common Patterns\n\n### Presentation Generator\n```python\ndef create_presentation(title, sections, output_path, theme='gaia'):\n    \"\"\"Generate presentation from structured data.\"\"\"\n    \n    md_content = f\"\"\"---\nmarp: true\ntheme: {theme}\npaginate: true\n---\n\n<!-- _class: lead -->\n\n# {title}\n\n{sections.get('subtitle', '')}\n\n{sections.get('author', '')}\n\n\"\"\"\n    \n    for section in sections.get('slides', []):\n        md_content += f\"\"\"---\n\n# {section['title']}\n\n\"\"\"\n        for point in section.get('points', []):\n            md_content += f\"- {point}\\n\"\n        \n        if section.get('notes'):\n            md_content += f\"\\n<!-- Notes: {section['notes']} -->\\n\"\n    \n    md_content += \"\"\"---\n\n<!-- _class: lead -->\n\n# Thank You!\n\nQuestions?\n\"\"\"\n    \n    return markdown_to_pptx(md_content, output_path, theme)\n```\n\n### Batch Slide Generation\n```python\ndef generate_report_slides(data_list, template, output_dir):\n    \"\"\"Generate multiple presentations from data.\"\"\"\n    import os\n    \n    for data in data_list:\n        content = template.format(**data)\n        output_path = os.path.join(output_dir, f\"{data['name']}_report.pptx\")\n        markdown_to_pptx(content, output_path)\n```\n\n## Examples\n\n### Example 1: Tech Presentation\n```markdown\n---\nmarp: true\ntheme: gaia\nclass: lead\npaginate: true\n---\n\n# API Documentation\n\n## REST API Best Practices\n\nEngineering Team\nJanuary 2024\n\n---\n\n# Agenda\n\n1. Authentication\n2. Endpoints Overview\n3. Error Handling\n4. Rate Limiting\n5. Examples\n\n---\n\n# Authentication\n\nAll requests require an API key:\n\n```http\nAuthorization: Bearer YOUR_API_KEY\n```\n\n- Keys expire after 90 days\n- Store securely, never commit to git\n- Rotate regularly\n\n---\n\n# Endpoints Overview\n\n| Method | Endpoint | Description |\n|--------|----------|-------------|\n| GET | \/users | List all users |\n| POST | \/users | Create user |\n| GET | \/users\/:id | Get user details |\n| PUT | \/users\/:id | Update user |\n| DELETE | \/users\/:id | Delete user |\n\n---\n\n# Error Handling\n\n```json\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Invalid email format\",\n    \"details\": [\"email must be valid\"]\n  }\n}\n```\n\n---\n\n<!-- _class: lead -->\n\n# Questions?\n\napi-support@company.com\n```\n\n### Example 2: Business Pitch\n```python\ndef create_pitch_deck(company_data):\n    \"\"\"Generate investor pitch deck.\"\"\"\n    \n    md = f\"\"\"---\nmarp: true\ntheme: uncover\npaginate: true\n---\n\n<!-- _class: lead -->\n<!-- _backgroundColor: #2d3748 -->\n<!-- _color: white -->\n\n# {company_data['name']}\n\n{company_data['tagline']}\n\n---\n\n# The Problem\n\n{company_data['problem_statement']}\n\n**Market Pain Points:**\n\"\"\"\n    \n    for pain in company_data['pain_points']:\n        md += f\"- {pain}\\n\"\n    \n    md += f\"\"\"\n---\n\n# Our Solution\n\n{company_data['solution']}\n\n![width:600px]({company_data.get('product_image', 'product.png')})\n\n---\n\n# Market Opportunity\n\n- **TAM:** {company_data['tam']}\n- **SAM:** {company_data['sam']}\n- **SOM:** {company_data['som']}\n\n---\n\n# Traction\n\n| Metric | Value |\n|--------|-------|\n| Monthly Revenue | {company_data['mrr']} |\n| Customers | {company_data['customers']} |\n| Growth Rate | {company_data['growth']} |\n\n---\n\n# The Ask\n\n**Seeking:** {company_data['funding_ask']}\n\n**Use of Funds:**\n- Product Development: 40%\n- Sales & Marketing: 35%\n- Operations: 25%\n\n---\n\n<!-- _class: lead -->\n\n# Let's Build the Future Together\n\n{company_data['contact']}\n\"\"\"\n    \n    return md\n\n# Generate deck\npitch_data = {\n    'name': 'TechStartup Inc',\n    'tagline': 'AI-Powered Document Processing',\n    'problem_statement': 'Businesses waste 20% of time on manual document work',\n    'pain_points': ['Manual data entry', 'Error-prone processes', 'Slow turnaround'],\n    'solution': 'Automated document processing with 99.5% accuracy',\n    'tam': '$50B',\n    'sam': '$10B',\n    'som': '$500M',\n    'mrr': '$100K',\n    'customers': '50',\n    'growth': '20% MoM',\n    'funding_ask': '$5M Series A',\n    'contact': 'founders@techstartup.com'\n}\n\nmd_content = create_pitch_deck(pitch_data)\nmarkdown_to_pptx(md_content, 'pitch_deck.pptx', theme='uncover')\n```\n\n## Limitations\n\n- Complex animations not supported\n- Some PowerPoint-specific features unavailable\n- Custom fonts require CSS configuration\n- Video embedding limited\n- Speaker notes have basic support\n\n## Installation\n\n```bash\n# Using npm\nnpm install -g @marp-team\/marp-cli\n\n# Using Homebrew\nbrew install marp-cli\n\n# Verify installation\nmarp --version\n```\n\n## Resources\n\n- [Marp Documentation](https:\/\/marp.app\/)\n- [Marp CLI GitHub](https:\/\/github.com\/marp-team\/marp-cli)\n- [Marpit Framework](https:\/\/marpit.marp.app\/)\n- [Theme CSS Guide](https:\/\/marpit.marp.app\/theme-css)\n","use_cases":["Convert markdown notes to a PowerPoint presentation","Generate slides from HTML content for a presentation","Create a PDF or HTML version of a slide deck"],"limitations":[],"compatibility":[],"setup_tip":"```bash\n# Using npm\nnpm install -g @marp-team\/marp-cli\n\n# Using Homebrew\nbrew install marp-cli\n\n# Verify installation\nmarp --version\n```","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/html-to-ppt\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T13:58:04.000000Z","updated_at":"2026-11-22T11:17:55.000000Z","seo_title":"HTML to PowerPoint Converter","seo_description":"Convert HTML or Markdown to PowerPoint presentations with Marp. Create slides with simple syntax.","seo_keywords":["HTML to PowerPoint","Markdown to PPT","Marp presentation converter","Slide deck generator","Markdown to slides"]}}