markdown-to-pdf

Convert markdown files to PDF documents using pandoc and weasyprint.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rahulrajaram/rahulskills --skill markdown-to-pdf-rahulrajaram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-to-pdf
Source: https://github.com/rahulrajaram/rahulskills/tree/main/skills/markdown-to-pdf
Command: npx skills add https://github.com/rahulrajaram/rahulskills --skill markdown-to-pdf-rahulrajaram

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill automates the conversion of markdown files into well-formatted PDF documents, streamlining the process of generating reports, documentation, or any content that requires a PDF output.

Core Features & Use Cases

  • Markdown to PDF Conversion: Leverages pandoc and weasyprint for robust conversion.
  • Custom Styling: Supports optional CSS stylesheets for tailored PDF appearance.
  • Use Case: Convert your project's README.md file into a professional-looking PDF document for easy sharing or archival.

Quick Start

Run the markdown-to-pdf skill to convert the file named 'report.md' into a PDF.

Frequently Asked Questions about markdown-to-pdf

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

FAQPage Schema
How do I convert markdown to PDF using pandoc and weasyprint?

To convert markdown to PDF, this skill uses pandoc with the weasyprint engine to process your input files and generate formatted PDF documents. You simply specify the input markdown file path and the desired output PDF path.

Can I apply custom CSS styling when converting markdown files to PDF?

Yes, you can apply custom CSS styling when converting markdown files to PDF. The skill supports optional CSS stylesheets, allowing you to tailor the appearance and formatting of the resulting PDF document to meet your specific presentation needs.

Do I need pandoc and weasyprint installed to convert markdown to PDF?

Pandoc and weasyprint are required dependencies for converting markdown to PDF. The skill handles dependency checks for both pandoc and weasyprint internally, verifying their presence before attempting the document conversion process.

What is the best way to generate a PDF report from a markdown file?

The best way to generate a PDF report from a markdown file is using an automated conversion tool like this skill, which leverages pandoc and weasyprint. It streamlines formatting, supports custom CSS, and reports the final page count for your records.

Does the markdown to PDF conversion process report the final page count?

Yes, the markdown to PDF conversion process reports the final page count. After using pandoc with the weasyprint engine to generate your document, the skill provides the total number of pages in the resulting PDF output.

Why convert markdown documentation into PDF format for project sharing?

Converting markdown documentation into PDF format creates professional-looking, easily shareable documents for archival or distribution. This skill automates the transformation from standard markdown files into well-formatted PDF outputs using pandoc and weasyprint.