pandoc

Convert Markdown documents to PDF, DOCX, and HTML using Pandoc.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

当需要将文档在不同格式之间转换时,本技能利用 Pandoc 提供一个统一的转换工作流,简化从 Markdown 到 PDF、DOCX、HTML 等格式的转换过程。

Core Features & Use Cases

  • 格式转换: 支持 Markdown 与多种目标格式之间的双向转换(如 Markdown→PDF、DOCX、HTML)。
  • 代码与图表处理: 在遇到 Mermaid 图表时,使用 Lua 过滤器保持图表渲染完整性。
  • 实用场景: 将技术文档、报告或笔记从 Markdown 转换为可分享的可打印格式,提高文档工作流的自动化水平。

Quick Start

将一个 Markdown 文档输入 Pandoc,输出为 PDF 文件。

Frequently Asked Questions about pandoc

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

FAQPage Schema
How do I convert Markdown to PDF or DOCX for documentation workflows?

To convert Markdown to PDF or DOCX, this Skill utilizes Pandoc to transform source documents into target formats, streamlining your documentation workflow by generating shareable files directly from Markdown text.

Does converting Markdown to HTML work with embedded Mermaid diagrams?

Converting Markdown to HTML with Mermaid diagrams works by applying a Lua filter, ensuring that embedded code blocks are properly rendered into images and maintaining diagram integrity during the document conversion.

Do I need Pandoc installed on my host to convert documents across formats?

Yes, you need Pandoc installed on your host system, because this Skill relies on the Pandoc engine locally to execute the format conversions between Markdown, DOCX, PDF, and HTML.

What is the best way to automate Markdown to PDF conversion for technical reports?

The best way to automate Markdown to PDF conversion is using a Pandoc-based workflow, which handles document transformations and processes embedded Mermaid diagrams via a Lua filter to produce printable technical reports.

Why are my Mermaid diagrams not rendering when I convert Markdown to DOCX?

Mermaid diagrams may not render if the mermaid-to-image.lua filter is missing or fails, because the conversion process depends on this specific script in the scripts directory to parse and process the diagrams into images.

Can I use this Pandoc workflow to convert Markdown to HTML for web publishing?

Yes, you can use this Pandoc workflow to convert Markdown to HTML for web publishing, providing a unified conversion process that translates source documents into web-ready formats while preserving embedded content.