md2pdf

Convert Markdown content into PDF documents using Typst templates.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/raystyle/skills --skill md2pdf-raystyle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md2pdf
Source: https://github.com/raystyle/skills/tree/main/skills/md2pdf
Command: npx skills add https://github.com/raystyle/skills --skill md2pdf-raystyle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool converts Markdown documents into polished PDFs using Typst templates, automating layout, styling, and workflows.

Core Features & Use Cases

  • Multi-template PDF generation for Chinese/English documents and technical docs, with automatic language and content density analysis.
  • Batch conversion support, optional cover pages, and table of contents, plus color and font overrides to match branding.
  • Real-world use: researchers and writers generate publication-ready PDFs from Markdown drafts with consistent formatting.

Quick Start

Run a single Markdown file through the CLI to generate a .typ and a .pdf, with optional template overrides and output controls.

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 multi-template support?

To convert Markdown to PDF, this tool parses Markdown content and compiles it into a production-ready PDF using Typst templates. It applies automatic language detection and template selection to ensure proper formatting for diverse documents.

Can I generate a PDF with a table of contents and custom cover pages from Markdown?

Yes, you can generate a PDF with a table of contents and cover pages from Markdown. The tool supports optional features including cover pages and tables of contents, alongside font and color overrides to match your branding.

Does Typst support Markdown conversion for Chinese and English technical documents?

Typst supports Markdown conversion for Chinese and English technical documents through automated language and content density analysis. The system coordinates Markdown parsing and Typst generation to produce properly localized PDFs.

What is the best way to batch convert Markdown drafts into publication-ready PDFs?

The best way to batch convert Markdown drafts is by running files through the CLI to generate .typ and .pdf outputs. It automates layout, styling, and workflows for researchers and writers needing publication-ready PDFs.

How do I override fonts and colors when converting Markdown to PDF?

You override fonts and colors when converting Markdown to PDF by applying optional template overrides and output controls. This allows you to match specific branding requirements during the Typst generation and PDF compilation process.