About md-to-pdf
A Node.js and TypeScript skill for converting Markdown files to PDF. It covers the conversion command, input and output options, and supported basic Markdown elements.
Key features
- 01Markdown-to-PDF conversion
- 02Required input path option
- 03Optional output path option
- 04Basic Markdown rendering
Use cases
- 01Exporting a Markdown document as PDF
- 02Choosing where the generated PDF is saved
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ willseed/ md-2-pdf --skill md-to-pdfAfter installing, type/md-to-pdfin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
.gitignoreLICENSEREADME.mdpackage.jsoneslint.config.mjstsconfig.jsonpackage-lock.jsonscripts/md_to_pdf.tstests/table-layout.spec.jstests/fixtures/table-layout.mdDetails
From the project READMEMarkdown 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
--outputis omitted, the script writes PDF next to the source markdown file. - Supports basic markdown rendering: headings, lists, blockquotes, horizontal rules, and fenced code blocks.
Comments
Markdown supported