huangserva/servasyy_skills · Archived

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.

First seen Apr 16, 2026

Installation

$ npx skills add huangserva/servasyy_skills --skill md-to-pdf

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from huangserva/servasyy_skills.

npx skills add huangserva/servasyy_skills

Browse all from huangserva/servasyy_skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 155
Default branch master
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Write, Edit, Glob, Grep, TodoWrite

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,114 B
  • docs SUMMARY.md 191 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

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

工作流程

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

输出

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

依赖

  • WeasyPrint
  • illustration-generator (可选)