pdf

Convert Markdown files to PDF with Mermaid diagram support.

2|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/maslennikov-ig/MC-2 --skill pdf-maslennikov-ig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/maslennikov-ig/MC-2/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/maslennikov-ig/MC-2 --skill pdf-maslennikov-ig

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @mermaid-js/mermaid-cli, md-mermaid-to-pdf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the conversion of Markdown documents into well-formatted PDF files, including complex diagrams.

Core Features & Use Cases

  • Markdown to PDF Conversion: Transforms Markdown content into a professional PDF document.
  • Mermaid Diagram Support: Renders various types of Mermaid diagrams (flowchart, gantt, sequence, etc.) directly within the PDF.
  • Use Case: You have a project documentation file written in Markdown that includes several flowcharts. Use this Skill to generate a single PDF document that contains both the text and the rendered diagrams.

Quick Start

Convert the markdown file named 'report.md' into a PDF file named 'report.pdf'.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I convert Markdown files to PDF with Mermaid diagrams included?

To convert Markdown files to PDF with Mermaid diagrams, use this Skill to process Markdown content and render flowcharts, gantt charts, and sequence diagrams directly into a professional PDF document.

Does Markdown to PDF conversion support Cyrillic characters and emojis in diagrams?

Markdown to PDF conversion supports Cyrillic characters and emojis in diagrams, ensuring that Mermaid flowcharts and sequence diagrams render correctly with non-Latin text and symbols.

What Mermaid diagram types are supported when converting Markdown to PDF?

Mermaid diagram types supported when converting Markdown to PDF include flowchart, gantt, sequence, class, state, er, and pie charts, providing comprehensive diagram rendering coverage.

Do I need to manually install mermaid-cli and md-mermaid-to-pdf to render diagrams in PDF?

You do not need to manually install mermaid-cli and md-mermaid-to-pdf, because this Skill automatically installs the necessary dependencies like @mermaid-js/mermaid-cli and md-mermaid-to-pdf.

Can I use this Markdown to PDF converter for project documentation containing multiple flowcharts?

You can use this Markdown to PDF converter for project documentation containing multiple flowcharts, generating a single PDF document that contains both the text and the rendered Mermaid diagrams.

Why are my Mermaid diagrams not rendering when converting Markdown to PDF?

Mermaid diagrams may not render when converting Markdown to PDF if the necessary dependencies are missing, but this Skill automatically installs @mermaid-js/mermaid-cli and md-mermaid-to-pdf to handle the rendering.