DEV Community

Discussion on: Various means for Markdown to PDF via Pandoc (not always HTML/CSS friendly)

Collapse
 
stereoplegic profile image
Mike Bybee

I love pandoc for markdown, HTML, and docx conversion (with a template docx and customized styles, or else it'll be ugly), but there are much easier options for PDF. Puppeteer and React-PDF are infinitely better.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I feel that React-PDF + web browser / Puppeteer / Electron should have perfect customizability.

Anyone tried this with MDX?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Actually, there are many tools to create PDF from JavaScript with total customizability; but... not zero setup.

That means I cannot use <h1> directly...

But it seems that I can indeed customize the MDX...