Md to pdf
Skill fabioc-aloha/Alex_Skill_Mall/plugins/converters/md-to-pdf
284 curated plugins for AI assistants across 16 categories: security, Azure, documentation, code quality, cloud infrastructure, and more. Works with GitHub Copilot. Drop into .github/skills/local/ and go.
npx -y skills add fabioc-aloha/Alex_Skill_Mall --skill md-to-pdfAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Convert Markdown to PDF via Pandoc with two rendering engines.
SKILL.md
1.4 KB, 346 tokens by cl100k_base, as published. Nobody here has run it
md-to-pdf
Convert Markdown to PDF via Pandoc with two rendering engines.
When to Use
- Reports, manuscripts, and printable documentation
- Documents needing high-fidelity typography (LaTeX engine)
- Faster turnaround drafts (HTML/wkhtmltopdf engine)
What's Here
md-to-pdf.cjs — Node script that wraps Pandoc.
External Dependencies
node(≥ 16)pandoc(≥ 3.0) on PATH- One of:
lualatex/ TeX Live (high-quality typography, slower)wkhtmltopdf(HTML route, faster, less precise)
Usage
node md-to-pdf.cjs input.md
node md-to-pdf.cjs input.md --engine lualatex
node md-to-pdf.cjs input.md --engine wkhtmltopdf
node md-to-pdf.cjs input.md --output custom.pdf
The script auto-detects available engines if --engine is omitted, preferring lualatex when present.
Frontmatter Hooks
YAML frontmatter is forwarded to Pandoc. Useful keys:
---
title: My Document
author: Your Name
date: 2026-04-28
toc: true
geometry: margin=1in
---
Notes
- Mermaid diagrams are pre-rendered to PNG and embedded
- Code blocks get syntax highlighting via Pandoc's
--highlight-style - Round-trip from
md-to-html→wkhtmltopdfis roughly equivalent to the HTML engine