Files
claude-md-to-pdf/README.md
2026-05-04 20:16:24 +02:00

41 lines
1.5 KiB
Markdown

# claude-md-to-pdf
A Claude Code plugin marketplace exposing the **md-to-pdf** skill — natural-language Markdown→PDF conversion using [`md-to-pdf`](https://www.npmjs.com/package/md-to-pdf).
## What it does
When you say things like *"exportier mal das PDF"*, *"regenerate the PDF"*, or *"convert this markdown to pdf"*, the skill picks up the relevant `.md`, finds the right style config, and runs `npx md-to-pdf`. No slash command required.
## Install
In Claude Code, on each device:
```
/plugin marketplace add https://YOUR_GITEA_HOST/jlmak/claude-md-to-pdf
/plugin install md-to-pdf@claude-md-to-pdf
```
(Replace `YOUR_GITEA_HOST` with your Gitea hostname, e.g. `git.example.com`. The repo can also be installed from a local clone — see "Local install" below.)
## Requirements
- Node.js with `npx` on `PATH` (the skill calls `npx --yes md-to-pdf`).
- On first invocation, `md-to-pdf` will download Chromium via Puppeteer (~150MB). Allow extra time and ensure outbound HTTPS to `googleapis.com` is permitted in restricted networks.
## How style is chosen
To override the default style, drop a `.md-to-pdf.config.js` next to your Markdown file (or anywhere upward in the directory tree). Project-local config always wins.
If no override is found, the bundled default is used — A4, 15/12mm margins, 5pt fixed-layout tables, system sans-serif at 11pt.
## Local install (no Gitea remote yet)
```
/plugin marketplace add ~/Development/claude-md-to-pdf
/plugin install md-to-pdf@claude-md-to-pdf
```
## License
MIT — see `LICENSE`.