KGTAF

Marp Cli

办公效率v0.0.1
作者:KGTAF更新于 2026-05-11marp-cli@clawhub_killgfat/marp-cli
PPT 生成PDF 处理#PDF

据 AlphaMoat 统计,截至 2026-09,Marp Cli 累计下载 2,950 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,761 位,在「办公效率」分类(435 个)中排名第 277 位。

累计安装
317
累计下载
2,950
星标
1
全站排名
#3,761
全站前 75% · 「办公效率」前 64%
平台累计安装累计下载星标评论
ClawHub ↗902,7881-
SkillHub ↗3172,9501—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档涵盖 HTML、PDF、PPTX、图像和演讲备注,以及预览、监听与批量模式。PDF、PPTX 和图像需要兼容浏览器;可编辑 PPTX 属实验功能且需 LibreOffice Impress。核对输出路径,服务保持本地,不可信输入禁用本地文件访问。

资料发布于 2026-10-27

可以用来做什么

  • 导出 Markdown 幻灯片

什么时候用

  • Markdown 演示需要文件输出时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

规划这份演示的导出,检查浏览器依赖和输出路径,不可信输入保持禁用本地文件访问。

月度数据趋势

累计下载2,950
1,6942,3693,0432026-03 · 累计下载 1,7872026-05 · 累计下载 2,1922026-06 · 累计下载 2,3262026-07 · 累计下载 2,5372026-08 · 累计下载 2,6642026-09 · 累计下载 2,95026-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,950—1
2026-082,664+5.0%1
2026-072,537+9.1%1
2026-062,326+6.1%1
2026-052,192—1
2026-031,787—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.2 KB · ClawHub v0.0.1
---
name: marp-cli
description: Convert Markdown to presentations via CLI. Output HTML, PDF, PowerPoint (PPTX), and images (PNG/JPEG).
homepage: https://github.com/marp-team/marp-cli
metadata:
  {
    "openclaw":
      {
        "emoji": "📽️",
        "requires": { "anyBins": ["marp"] },
展开全部(共 192 行)
      },
  }
---

# Marp CLI

Convert Markdown to presentations via CLI. Output HTML, PDF, PowerPoint (PPTX), and images (PNG/JPEG).

**Browser requirement:** Conversions marked with 🌐 require a compatible browser (Chrome, Edge, or Firefox) installed on your system.

## Quick Start

```bash
# Convert to HTML
marp slide-deck.md

# Convert to PDF (requires browser)
marp --pdf slide-deck.md

# Convert to PowerPoint
marp --pptx slide-deck.md

# Convert to images
marp --images png slide-deck.md
```

📖 **Detailed guide:** [QUICKSTART.md](QUICKSTART.md)

## Format conversion

### HTML
```bash
marp slide-deck.md
marp slide-deck.md -o output.html
```

### PDF 🌐
```bash
marp --pdf slide-deck.md
marp slide-deck.md -o output.pdf

# With PDF outlines
marp --pdf --pdf-outlines slide-deck.md

# Includes presenter notes as annotations on lower-left
marp --pdf --pdf-notes slide-deck.md
```

### PowerPoint (PPTX) 🌐
```bash
marp --pptx slide-deck.md
marp slide-deck.md -o output.pptx

# Editable PPTX (experimental, requires LibreOffice Impress)
marp --pptx --pptx-editable slide-deck.md
```

### Images 🌐
```bash
# Multiple images
marp --images png slide-deck.md
marp --images jpeg slide-deck.md

# Title slide image only
marp --image png slide-deck.md
marp slide-deck.md -o output.png

# High resolution (scale factor)
marp slide-deck.md -o title.png --image-scale 2
```

### Presenter notes
```bash
marp --notes slide-deck.md
marp slide-deck.md -o output.txt
```

## Watch mode

```bash
# Watch file and auto-convert on changes
marp -w slide-deck.md

# Watch with browser preview
marp -w -p slide-deck.md
```

## Server mode

```bash
# Serve directory with on-demand conversion
marp -s ./slides

# Specify port via environment
PORT=5000 marp -s ./slides

# Access converted formats via query strings
# http://localhost:8080/deck.md?pdf
# http://localhost:8080/deck.md?pptx
```

## Preview window

```bash
# Open preview window (automatically enables watch mode)
marp -p slide-deck.md

# Preview with PDF output
marp -p --pdf slide-deck.md
```

## Multiple files

```bash
# Convert multiple files
marp slide1.md slide2.md slide3.md

# Convert directory
marp ./slides/

# Use glob patterns
marp **/*.md

# Convert with parallelism (default: 5 concurrent)
marp -P 10 ./*.md

# Disable parallelism
marp --no-parallel ./*.md
```

## Options

| Option | Description |
|--------|-------------|
| `-o, --output <path>` | Output file path |
| `-w, --watch` | Watch mode - auto-convert on changes |
| `-s, --server <dir>` | Server mode - serve directory |
| `-p, --preview` | Open preview window |
| `--pdf` | Convert to PDF (requires Chrome/Edge/Firefox) |
| `--pptx` | Convert to PowerPoint PPTX (requires browser) |
| `--pptx-editable` | Generate editable PPTX (experimental) |
| `--images [png\|jpeg]` | Convert to multiple images |
| `--image` | Convert title slide to single image |
| `--image-scale <factor>` | Scale factor for images |
| `--notes` | Export presenter notes to TXT |
| `--pdf-notes` | Add PDF note annotations |
| `--pdf-outlines` | Add PDF outlines/bookmarks |
| `--allow-local-files` | Allow accessing local files (security note) |
| `--browser <chrome\|edge\|firefox>` | Choose browser for conversion |
| `--browser-path <path>` | Specify browser executable path |
| `-P, --parallel <num>` | Parallel conversion count |
| `--no-parallel` | Disable parallel conversion |
| `--template <name>` | HTML template (default: bespoke) |

## Common patterns

```bash
# Watch and preview while editing
marp -w -p deck.md

# Serve slides directory
marp -s ./presentations

# Convert all slides to PDF
marp --pdf *.md

# Create OG image from title
marp deck.md -o og.png --image-scale 3

# Export presenter notes
marp --notes deck.md
```

## Documentation

| Document | Description |
|----------|-------------|
| [QUICKSTART.md](QUICKSTART.md) | Quick start guide |
| [EXAMPLES.md](EXAMPLES.md) | Detailed examples |
| [README.md](README.md) | Project overview |
| Official docs | https://github.com/marp-team/marp-cli |

「办公效率」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。