Skip to content

PardownMarkdown to PDF in JavaScript

Generate PDF bytes in your application, or convert Markdown files from your terminal.

Pardown raven logoPardown raven logo

Create your first PDF

Install @pardown/core, convert a Markdown string, and write the returned bytes to a file:

sh
npm install @pardown/core
ts
import { writeFile } from 'node:fs/promises';
import { markdownToPdf } from '@pardown/core';

const markdown = '# Project update\n\nThe release is **ready**.';
const pdf = await markdownToPdf(markdown);

await writeFile('project-update.pdf', pdf);

Pardown parses Markdown with Comark and renders PDF documents with Jasy.

Choose how you use Pardown

You can use Pardown as a library or as a command-line tool:

Released under the MIT License.