Search

PythonReactSEOPDF
OpenClaw

md-to-pdf

MarkdownからPDFを生成する。md-to-pdf(Puppeteer)を使用。GitHub風スタイル、日本語・カラー絵文字対応。

hiroakiyoshikura0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install hiroakiyoshikura/md-to-pdf

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

pdf-creator

Markdownを書いて、md-to-pdf でPDFに変換するスキル。内部でPuppeteer(ヘッドレスChromium)を使うため、ブラウザで見たままの高品質なPDFが生成される。

使い方

手順
  1. Markdownファイルを /tmp/ に書き出す(YAML front-matterでスタイル指定)
  2. md-to-pdf コマンドで変換
  3. 生成されたPDFを送信
基本テンプレート
cat > /tmp/output.md << 'MDEOF'
---
css: |-
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 12px; padding: 2em; line-height: 1.6; color: #24292f; }
  h1 { text-align: center; border-bottom: 2px solid #333; padding-bottom: 0.5em; }
  h2 { color: #2c3e50; margin-top: 1.5em; }
  table { border-collapse: collapse; width: 100%; }
  th, td { border: 1px solid #d0d7de; padding: 6px 13px; text-align: left; }
  th { background: #f6f8fa; font-weight: 600; }
  code { background: #f6f8fa; padding: 0.2em 0.4em; border-radius: 3px; font-size: 85%; }
  blockquote { color: #57606a; border-left: 4px solid #d0d7de; padding: 0 1em; margin: 0; }
  .page-break { page-break-after: always; }
pdf_options:
  format: A4
  margin: 20mm
  printBackground: true
---

# タイトル

本文をここに書く。**太字**、*斜体*、`コード`も使える。

## 表

| 項目 | 値 |
|------|------|
| 名前 | シロ |
| モデル | Gemini 3 Flash |

## リスト

- ✅ 完了した項目
- 🔧 作業中の項目
- ⚠ 注意事項

MDEOF

timeout 30 md-to-pdf /tmp/output.md

変換完了後、/tmp/output.pdf が生成される。30秒でタイムアウトする(Chromiumハング防止)。

ポイント
  • 日本語: そのまま使える(Chromiumがシステムフォントを使用)
  • 絵文字: カラー絵文字がそのまま表示される(ブラウザネイティブ)
  • スタイル: GitHub Markdown CSSで美しいレイアウト
  • 表(テーブル): Markdown記法がそのまま綺麗な表になる
  • 太字・斜体: Markdownの**太字**や*斜体*がそのまま反映
  • コードブロック: シンタックスハイライト付き
  • 改ページ: <div class="page-break"></div> を挿入
  • 出力先: /tmp/ に出力してからDiscordに送信すること
改ペ...

Source information

Source
github
Repository
openclaw/skills
Path
skills/hiroakiyoshikura/md-to-pdf
Version
—
Commit
26d519fb04ffddd6bd428ef16e513d8faed6ac10
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# pdf-creator

Markdownを書いて、md-to-pdf でPDFに変換するスキル。内部でPuppeteer(ヘッドレスChromium)を使うため、ブラウザで見たままの高品質なPDFが生成される。

## 使い方

### 手順

1. Markdownファイルを `/tmp/` に書き出す(YAML front-matterでスタイル指定)
2. `md-to-pdf` コマンドで変換
3. 生成されたPDFを送信

### 基本テンプレート

```bash
cat > /tmp/output.md << 'MDEOF'
---
css: |-
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 12px; padding: 2em; line-height: 1.6; color: #24292f; }
  h1 { text-align: center; border-bottom: 2px solid #333; padding-bottom: 0.5em; }
  h2 { color: #2c3e50; margin-top: 1.5em; }
  table { border-collapse: collapse; width: 100%; }
  th, td { border: 1px solid #d0d7de; padding: 6px 13px; text-align: left; }
  th { background: #f6f8fa; font-weight: 600; }
  code { background: #f6f8fa; padding: 0.2em 0.4em; border-radius: 3px; font-size: 85%; }
  blockquote { color: #57606a; border-left: 4px solid #d0d7de; padding: 0 1em; margin: 0; }
  .page-break { page-break-after: always; }
pdf_options:
  format: A4
  margin: 20mm
  printBackground: true
---

# タイトル

本文をここに書く。**太字**、*斜体*、`コード`も使える。

## 表

| 項目 | 値 |
|------|------|
| 名前 | シロ |
| モデル | Gemini 3 Flash |

## リスト

- ✅ 完了した項目
- 🔧 作業中の項目
- ⚠ 注意事項

MDEOF

timeout 30 md-to-pdf /tmp/output.md
```

変換完了後、`/tmp/output.pdf` が生成される。30秒でタイムアウトする(Chromiumハング防止)。

### ポイント

- **日本語**: そのまま使える(Chromiumがシステムフォントを使用)
- **絵文字**: カラー絵文字がそのまま表示される(ブラウザネイティブ)
- **スタイル**: GitHub Markdown CSSで美しいレイアウト
- **表(テーブル)**: Markdown記法がそのまま綺麗な表になる
- **太字・斜体**: Markdownの`**太字**`や`*斜体*`がそのまま反映
- **コードブロック**: シンタックスハイライト付き
- **改ページ**: `<div class="page-break"></div>` を挿入
- **出力先**: `/tmp/` に出力してからDiscordに送信すること

### 改ペ...

Related skills

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

zsxq-digest

sealiu1997

OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...