Skip to content

0.4.0 - 2026-05-13

Choose a tag to compare

@github-actions github-actions released this 13 May 16:46
c5ccd57

Major lexer overhaul toward full CommonMark + GFM compliance.

  • HTML handling — raw inline HTML, block-element blocks (<div>/<table>/<p>), standalone-tag blocks, raw-content blocks (<script>/<pre>/<style>/<textarea>), block comments, processing instructions, CDATA, and declarations.
  • AST & resolution — stack-based emphasis resolution; wider Link/Image AST with parsed inline content and preserved titles; loose-vs-tight list detection; blockquote lazy continuation; entity decoding in link text / URL / alt and reference labels; full HTML5 named-entity table.
  • Performance & correctness — linear-time emphasis; BOM stripping; tab-aware block-marker detection; many CommonMark spec gaps closed (60.6% → 89.0% spec pass rate).
  • Packaging — missing build.rs / entities.json added to the package.
  • Tests — reorganised under tests/markdown/ (~250 new cases) with a CommonMark spec runner and a stress suite; CI runs cargo test on every PR.

Install markdown2pdf 0.4.0

Install prebuilt binaries via Homebrew

brew install theiskaa/tap/markdown2pdf

Download markdown2pdf 0.4.0

File Platform Checksum
markdown2pdf-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
markdown2pdf-x86_64-apple-darwin.tar.xz Intel macOS checksum
markdown2pdf-x86_64-pc-windows-msvc.zip x64 Windows checksum
markdown2pdf-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
markdown2pdf-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum