lovstudio:md2pdf
Installation
SKILL.md
md2pdf — Markdown to PDF (pandoc)
Quick conversion from Markdown to PDF using pandoc + xelatex. Supports CJK text out of the box with PingFang SC. For simple documents where you just need a clean PDF — no cover page, no TOC, no themes.
For feature-rich PDF generation, use lovstudio:any2pdf instead.
When to Use
- User wants a quick PDF from a markdown file
- Document is simple (no need for cover page, TOC, watermarks)
- User explicitly asks for pandoc-based conversion
Workflow
Step 1: Identify markdown files
Locate the .md file(s) the user wants to convert.
Step 2: Execute
bash lovstudio-md2pdf/scripts/md2pdf.sh /path/to/file.md
Output: /path/to/file.pdf (same directory, same name, .pdf extension).
For multiple files:
bash lovstudio-md2pdf/scripts/md2pdf.sh file1.md file2.md file3.md
Step 3: Verify
Check the output file exists and report its size.
CLI Reference
| Argument | Description |
|---|---|
file1.md [file2.md ...] |
One or more Markdown files to convert |
Output is always <input>.pdf in the same directory as the input file.
Finder Quick Action
This skill can also be installed as a macOS Finder Quick Action for right-click conversion. See lovstudio/mac-md2pdf for the Automator workflow.
Dependencies
brew install pandoc basictex
Weekly Installs
5
Repository
lovstudio/skillsGitHub Stars
40
First Seen
8 days ago
Installed on
opencode5
gemini-cli5
deepagents5
antigravity5
github-copilot5
codex5