md-to-pdf

Convert Markdown documents to PDFs with WeasyPrint and Chinese font support.

155|24|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/huangserva/servasyy_skills --skill md-to-pdf-huangserva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-pdf
Source: https://github.com/huangserva/servasyy_skills/tree/main/md-to-pdf
Command: npx skills add https://github.com/huangserva/servasyy_skills --skill md-to-pdf-huangserva

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Markdown documents often require portable, well-formatted PDFs for distribution or publication, and converting them manually is error-prone and time-consuming.

Core Features & Use Cases

  • Convert Markdown to PDF with consistent typography and layout
  • Optional: auto-generate illustrations for missing images
  • Supports Chinese fonts and custom styling for professional docs

Quick Start

Run /md-to-pdf on a Markdown file to produce a PDF, with optional illustrations.

Frequently Asked Questions about md-to-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to PDF with consistent typography and layout?

To convert Markdown to PDF with consistent typography, run the conversion tool on your Markdown file to automatically render styled PDF outputs using WeasyPrint.

Can I generate PDFs from Markdown that contain Chinese text?

Generating PDFs from Markdown with Chinese text is fully supported, as the rendering process includes built-in Chinese font support to ensure proper character display.

Does Markdown to PDF conversion work with missing images in the document?

Markdown to PDF conversion handles missing images by optionally triggering an illustration generator to automatically create and insert the required visual content.

What is the best way to produce professional PDF documentation from Markdown files?

Producing professional PDF documentation from Markdown is best handled by applying configurable custom styling during the WeasyPrint rendering process to ensure consistent formatting.

Do I need WeasyPrint to render Markdown documents into PDF format?

WeasyPrint is required to render Markdown documents into PDF format, serving as the core engine that applies typography, layout, and custom styling rules.