md2pdf

Convert Markdown files to PDF documents with CSS styling and Chinese font support.

2|3|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/aicoder2048/story-writer --skill md2pdf-aicoder2048
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md2pdf
Source: https://github.com/aicoder2048/story-writer/tree/main/.claude/skills/md2pdf
Command: npx skills add https://github.com/aicoder2048/story-writer --skill md2pdf-aicoder2048

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, weasyprint, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the conversion of Markdown files into beautifully styled PDF documents, complete with full Chinese font support and customizable aesthetics.

Core Features & Use Cases

  • Markdown to PDF Conversion: Transforms .md files into professional-looking PDFs.
  • Chinese Font Support: Ensures correct rendering of Chinese characters.
  • Customizable Styling: Allows for adjustments to fonts, colors, and page layout using CSS.
  • Use Case: Generate printable book chapters, story PDFs, or technical documentation from Markdown source files.

Quick Start

Use the md2pdf skill to convert the file 'input.md' to 'output.pdf' using the 'vintage-paper.css' style.

Frequently Asked Questions about md2pdf

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

FAQPage Schema
How do I convert Markdown to PDF with Chinese fonts?

To convert Markdown to PDF with Chinese fonts, this tool renders the markdown to HTML and applies CSS styling to ensure correct character rendering for your final PDF document.

Can I customize the PDF styling when converting from Markdown?

Yes, you can fully customize PDF styling when converting from Markdown by adjusting fonts, colors, and page layout through CSS files to achieve your desired document aesthetics.

Does WeasyPrint support generating technical documentation from Markdown?

WeasyPrint supports generating technical documentation from Markdown by rendering the converted HTML into a PDF document, allowing you to produce professional reports from your source files.

What is the best way to generate printable book chapters from Markdown?

The best way to generate printable book chapters from Markdown is using a conversion tool that applies customizable CSS styling to render your text files into formatted PDF documents.

Do I need to install Markdown and WeasyPrint libraries for PDF conversion?

Yes, you need the Markdown and WeasyPrint libraries installed, as they handle the HTML conversion and PDF rendering required to process and output your styled documents.