medhira

Convert Markdown to PDF inside n8n using Puppeteer - A Medhira community package

Package Information

Released: 4 mo ago
Downloads: 13 weekly / 45 monthly
Latest Version: 1.0.1
Author: MEDHIRA

Documentation

n8n-nodes-medhira

Convert Markdown to beautiful PDFs inside n8n — free, self-hosted, and production-ready.

npm version
License
Powered by MEDHIRA


MEDHIRA



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
docker exec -it n8n sh
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
exit
docker restart n8n
npx n8n
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
npx n8n
Global n8n
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-medhira
n8n

Note: Community nodes require self-hosted n8n. n8n Cloud is not supported.

Use in a workflow

  1. Press Ctrl+K (or Cmd+K) → search Markdown To Pdf
  2. Paste or pass Markdown content
  3. 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:none

Example

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


License

Licensed under the Apache License 2.0.


Made with care by MEDHIRA

hello.medhira@gmail.com

Discussion