Skip to content
Back to skills

Md To Pdf

ASecurity

Convert markdown documents to PDF with optional illustrations. Can automatically call illustration-generator if images are missing. Supports Chinese fonts and custom styling.

  • 67 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 10, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --skill md-to-pdf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Md To Pdf?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Md To Pdf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-md-to-pdf/badge)](https://www.skillsdirectory.com/skills/comeonoliver-md-to-pdf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: md-to-pdf
description: Convert markdown documents to PDF with optional illustrations. Can automatically call illustration-generator if images are missing. Supports Chinese fonts and custom styling.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, TodoWrite
---

# Markdown to PDF Converter

将 Markdown 文档转换为 PDF,支持自动配图。

## 功能

- 📄 Markdown → PDF 转换
- 🎨 可选:自动调用 illustration-generator 生成配图
- 🇨🇳 中文字体支持
- 🎯 纽约客风格排版

## 使用方法

### 基础用法

```bash
# 仅转换(需要图片已存在)
/md-to-pdf <markdown_file>

# 自动生成配图后转换
/md-to-pdf <markdown_file> --with-illustrations

# 指定输出路径
/md-to-pdf <markdown_file> -o output.pdf
```

### 工作流程

1. 检查图片是否存在
2. 如果 `--with-illustrations`:调用 illustration-generator
3. 使用 WeasyPrint 转换 MD → PDF
4. 输出 PDF 文件

## 输出

- PDF 文件:与 MD 同名,`.pdf` 后缀
- 包含封面、配图、格式化文本

## 依赖

- WeasyPrint
- illustration-generator (可选)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.