Markdown to PDF (Styled)

# md-to-pdf

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Markdown to PDF (Styled)" with this command: npx skills add mengwuzhi/markdown-to-pdf-styled

md-to-pdf

version: 1.0.0
author: 大总管
description: Convert Markdown (.md) files to styled PDF documents with pandoc + wkhtmltopdf

Use this skill to convert Markdown to PDF with consistent styles.

Quick Start

  1. Ensure dependencies exist:
pandoc --version
wkhtmltopdf --version
  1. Run conversion:
bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md

Style Options

Use built-in styles:

  • clean (default): simple business style
  • modern: blue, presentation-friendly
  • paper: serif, reading-friendly

Examples:

bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md --style clean
bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md /abs/path/out.pdf --style modern
bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md --style paper

Custom CSS

Pass an absolute CSS path:

bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md /abs/path/doc.pdf --style /abs/path/custom.css

Notes

  • Script enables local CSS loading via --enable-local-file-access.
  • If output title warning appears, set Markdown metadata title:.
  • For detailed usage and troubleshooting, read {baseDir}/references/usage.md.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Mxe

Convert Markdown files to PDF, DOCX, or HTML with advanced formatting, Mermaid diagrams, custom fonts, and table of contents support.

Registry SourceRecently Updated
1.7K0Profile unavailable
Coding

Wechat Article Export

Export WeChat public account articles as mobile long screenshots (PNG), PDFs, or high-quality Markdown with YAML frontmatter and code block support.

Registry SourceRecently Updated
1920Profile unavailable
Coding

Markdown to PDF Converter (v2.0)

Offline Markdown to PDF converter with full Unicode support using Pandoc + WeasyPrint + local emoji cache. Converts Markdown documents to professional PDFs w...

Registry SourceRecently Updated
1K2Profile unavailable
General

MiniMax PDF

MiniMax PDF专业排版导出 - Playwright+ReportLab双引擎,HTML/CSS封面渲染,精准正文排版,输出印刷级、版式稳定的PDF文档。

Registry SourceRecently Updated
970Profile unavailable