Md to pdf
Skill ComeOnOliver/skillshub/skills/huangserva/servasyy_skills/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.From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill md-to-pdfAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, 274 tokens by cl100k_base, as published. Nobody here has run it
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 (可选)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.