Ask HN: Where are the good Markdown to PDF tools (that meet these requirements)?

I'm trying to convert a very large Markdown file (a couple hundred pages) to PDF.

It contains lots of code in code blocks and has a table of contents at the start with internal links to later pages.

I've tried lots of different Markdown-PDF converters like md2pdf and Pandoc, even trying converting it through LaTeX first, however none of them produce working internal PDF links, have effective syntax highlighting for HTML, CSS, JavaScript and Python, and wrap code to fit it on the page.

I have a very long regular expression (email validation of course) that doesn't fit on one line but no solutions I have found properly break the lines on page overflow.

What tools does everyone recommend?


Comments URL: https://news.ycombinator.com/item?id=43231964

Points: 16

# Comments: 19

https://news.ycombinator.com/item?id=43231964

Created 6mo | Mar 2, 2025, 6:10:08 PM


Login to add comment

Other posts in this group

Purposeful animations
Sep 5, 2025, 6:40:15 PM | Hacker news
Show HN: Open-sourcing our text-to-CAD app

Hey HN! I'm Zach from Adam (https://adam.new/). We’re building an AI co-pilot for mechanical CAD software.

As part of our broader research, we built a browser-bas

Sep 5, 2025, 6:40:07 PM | Hacker news