n8n-nodes-medhira
v1.0.1
Published
Convert Markdown to PDF inside n8n using Puppeteer - A Medhira community package
Maintainers
Readme
n8n-nodes-medhira
Convert Markdown to beautiful PDFs inside n8n — free, self-hosted, and production-ready.
Documentation · NPM · GitHub · Report Issue
Why this node?
Turn Markdown into polished PDF documents directly in your n8n workflows — no paid nodes, no external services.
| Feature | Supported | |---------|-----------| | Headers, lists, tables, blockquotes | Yes | | Syntax-highlighted code blocks | Yes | | LaTeX math formulas (KaTeX) | Yes | | Batch processing (multiple items) | Yes | | Custom file names & page formats | Yes | | Self-hosted n8n | Yes |
Quick start
Install
docker exec -it n8n sh
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
exit
docker restart n8nmkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
npx n8nmkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
n8nNote: Community nodes require self-hosted n8n. n8n Cloud is not supported.
Use in a workflow
- Press
Ctrl+K(orCmd+K) → search Markdown To Pdf - Paste or pass Markdown content
- Connect to Write Binary File to save the PDF
flowchart LR
A["Any Input"] --> B["Markdown To Pdf"]
B --> C["Write Binary File"]
style B fill:#2563eb,color:#fff,stroke:noneExample
Input Markdown:
# Quarterly Report
Revenue grew **24%** year over year.
## Formula
$$E = mc^2$$
## Code
```javascript
console.log("Hello from n8n!");
```Output:
| Field | Example |
|-------|---------|
| json.fileName | file-1.pdf |
| json.size | 48213 |
| binary.data | PDF file (application/pdf) |
Configuration
| Option | Default | Description |
|--------|---------|-------------|
| Markdown | — | Markdown text to convert |
| File Name | file-{{ $index }} | Output PDF name |
| PDF Format | A4 | A4, Letter, or Legal |
Markdown can also arrive from a previous node via json.markdown.
Full guides: Installation · Usage · Configuration
Requirements
- Node.js 18+
- Self-hosted n8n
- Puppeteer system libraries (see Installation guide)
License
Licensed under the Apache License 2.0.
Made with care by MEDHIRA
