v0.1.0-core-rendering
Release v0.1.0 - Core Engine & Rendering Foundation
We are thrilled to announce the first major milestone of md2pdf! Version 0.1.0 introduces our powerful, high-fidelity core rendering engine, establishing a robust foundation for beautiful Markdown-to-PDF generation.
Key Features
- High-Fidelity Rendering Pipeline: Leverages
Playwrightto drive Chromium for pixel-perfect PDF pagination, executing standard print-friendly CSS. - Unified Ecosystem: Fully integrated with
remarkandrehypefor reliable AST parsing and AST-to-HTML conversion. - Beautiful Typography & Layout: Integrated Google Fonts (
Interfor standard text andJetBrains Monofor code blocks). We've also included sophisticated CSS for proper wrapping of code blocks across PDF boundaries! - Native Syntax Highlighting: Integrated
shikiright into the parsing pipeline, rendering beautiful colored code blocks for 20+ languages out of the box (with graceful fallbacks for unknown languages). - GitHub Flavored Markdown (GFM): Natively supports rendering tables, strikethrough, and properly aligned task lists (no more double-bullets!).
- Safe Local Image Embedding: Smartly encodes and transforms local image paths (even those with spaces!) into absolute
file://URIs so they reliably show up in your PDFs. - Golden Document Testing Suite: Shipped with our robust visual regression suite layout (the "Golden Documents") so we can guarantee future updates never silently break your layouts.
CLI Enhancements
- Properly structured CLI using
commander. - Informative and robust error and warning surfaces (e.g. CLI now warns you if a code language isn't recognized but still proceeds with rendering).
What's Next?
Next up in the pipeline, we are setting our sights on v0.2.0 & v0.3.0, which will introduce native Mermaid.js diagram rendering and KaTeX mathematical equations, taking your technical PDFs to the next level.
Thank you for exploring md2pdf!
– Amit Divekar