Skip to content
Back to skills

Markdown To Pdf Styled

ASecurity

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

  • 21 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 7, 2026
documentationbash

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill markdown-to-pdf-styled --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Markdown To Pdf Styled?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Markdown To Pdf Styled
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-markdown-to-pdf-styled/badge)](https://www.skillsdirectory.com/skills/modbender-markdown-to-pdf-styled)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: md-to-pdf
description: Use this skill to convert Markdown to PDF with consistent styles.
---

# 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:

```bash
pandoc --version
wkhtmltopdf --version
```

2. Run conversion:

```bash
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
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
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`.

Files in this skill

  • SKILL.md1.3 KB
  • assets/styles/clean.css1.2 KB
  • assets/styles/modern.css1.4 KB
  • assets/styles/paper.css1.1 KB
  • references/usage.md889 B
  • scripts/md2pdf.sh1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.