md2pdf

Converts Markdown files to PDFs using ReportLab with CJK support and Obsidian vault expansion.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This tool streamlines the creation of publication-quality PDFs from Markdown, eliminating manual layout, font tuning, and formatting work. It supports mixed Chinese and Latin text, code blocks, tables, covers, TOC, and PDF bookmarks, delivering consistent typography and professional appearance. It also expands Obsidian vault links and offers optional Markdown cleanup pipelines.

Core Features & Use Cases

  • High-fidelity Markdown→PDF conversion with themes, cover pages, and clickable TOC.
  • Automatic PDF bookmarks, per-chapter outlines, and running headers for navigation.
  • Obsidian vault link expansion and optional Markdown cleanup to normalize inputs.
  • Use case: generate a conference proceedings PDF from a large Markdown file containing math-free content with CJK text.

Quick Start

Run the md2pdf_v3.py script with an input Markdown file to generate a formatted PDF.

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 mixed Chinese and Latin text?

This tool converts Markdown to PDF by automatically handling font tuning and typography for mixed Chinese and Latin text, delivering consistent publication-ready output without manual layout work.

Can I generate a table of contents and bookmarks from Markdown for a PDF report?

Yes, converting Markdown to PDF automatically generates a clickable table of contents, per-chapter outlines, and PDF bookmarks to streamline navigation for technical docs and research reports.

Does ReportLab support adding cover pages and tables when converting Markdown?

Yes, using the ReportLab-based workflow, you can convert Markdown into PDFs featuring cover pages, formatted code blocks, and structured tables for professional technical documentation.

How do I expand Obsidian vault links into a publication-ready PDF?

You can expand Obsidian vault links and normalize inputs through optional Markdown cleanup hooks before rendering the content into a polished, publication-ready PDF document.

Is Typst available as an alternative rendering path for Markdown to PDF conversion?

Yes, alongside the standard ReportLab pipeline, there is an optional Typst rendering path available for converting Markdown into high-fidelity PDF documents.

What are the limitations when converting math-heavy Markdown to PDF?

This conversion pipeline is designed for math-free content; Markdown files containing complex mathematical equations may not render correctly and require specialized typesetting tools.