Md To PDF

Convert Markdown files to PDF using a Node.js CLI script. Use when the user asks to export .md content into a .pdf file.

willseed 3a1aa09 8 files · 84.5 KB Updated

File contents

Markdown to PDF (Node.js + TypeScript)

Quick start

Use the included TypeScript script:

cd /Users/willseed/GitRepo/skill/md-to-pdf
npm install
npm run convert -- --input /path/to/file.md --output /path/to/file.pdf

Notes

  • Required argument: --input (or -i)
  • Optional argument: --output (or -o)
  • If --output is omitted, the script writes PDF next to the source markdown file.
  • Supports basic markdown rendering: headings, lists, blockquotes, horizontal rules, and fenced code blocks.

willseed/md-2-pdf/tree/main/ commit 3a1aa098f2

Frequently asked questions

npx skillmds@latest add willseed/md-to-pdf