> md-to-pdf
Convert markdown documents to PDF with optional illustrations. Can automatically call illustration-generator if images are missing. Supports Chinese fonts and custom styling.
fetch
$
curl "https://skillshub.wtf/huangserva/servasyy_skills/md-to-pdf?format=md"SKILL.md•md-to-pdf
Markdown to PDF Converter
将 Markdown 文档转换为 PDF,支持自动配图。
功能
- 📄 Markdown → PDF 转换
- 🎨 可选:自动调用 illustration-generator 生成配图
- 🇨🇳 中文字体支持
- 🎯 纽约客风格排版
使用方法
基础用法
# 仅转换(需要图片已存在)
/md-to-pdf <markdown_file>
# 自动生成配图后转换
/md-to-pdf <markdown_file> --with-illustrations
# 指定输出路径
/md-to-pdf <markdown_file> -o output.pdf
工作流程
- 检查图片是否存在
- 如果
--with-illustrations:调用 illustration-generator - 使用 WeasyPrint 转换 MD → PDF
- 输出 PDF 文件
输出
- PDF 文件:与 MD 同名,
.pdf后缀 - 包含封面、配图、格式化文本
依赖
- WeasyPrint
- illustration-generator (可选)
> related_skills --same-repo
> wechat-article-formatter
将 Markdown 文章转换为微信公众号 HTML 格式,支持自动插入配图、微信样式优化。
> twitter-crawler
Twitter 推文爬取器 - 指定用户名爬取推文,保存为 Markdown 格式,支持自定义数量和字段
> tts-script-generator
Intelligently compress and rewrite documents into TTS-friendly scripts. Uses Claude AI to analyze content, compress to target duration, convert to spoken style with emotional language, and auto-segment. Perfect for video narration.
> ppt-generator
生成专业 PPT 演示文稿,支持 22 种风格,自动根据内容选择最佳风格,输出到 ~/ppt-output/
┌ stats
installs/wk0
░░░░░░░░░░github stars34
███████░░░first seenMar 17, 2026
└────────────