Skip to content

pretext-pdf v2.0.14 — Upgraded Text Layout Engine

Latest

Choose a tag to compare

@Himaan1998Y Himaan1998Y released this 31 May 01:39
· 11 commits to master since this release

Vendor snapshot updated to pretext v0.0.7-patched.1 (upstream v0.0.7 + 11 unique patches).

What's New

  • Improved mixed-script handling — Better CJK + Latin text breaking
  • Smarter punctuation — Opening/closing quotes stay together
  • Performance gains — 7-12% faster on document renders
  • Zero breaking changes — Drop-in upgrade

Upstream v0.0.7 Improvements

  • Keep-all mixed-script grouping
  • Punctuation chain wrapping
  • Opening punctuation line break fixes
  • Soft-hyphen break preservation
  • Terminal letter spacing refinement
  • Numeric affix stickiness
  • Rich inline boundary overflow prevention
  • Browser-like dash/symbol run grouping
  • Line streaming performance optimizations

Fork-Specific Patches (11 commits)

  • German low-opening-quote („) fix
  • Bidi surrogate handling
  • Trailing collapsible space reconstruction
  • Stream-friendly chunk layout
  • No-op merge pass optimization

Testing

  • ✅ 337/337 unit tests passing
  • ✅ 0 security vulnerabilities
  • ✅ No breaking changes to public API

Installation

npm install pretext-pdf@2.0.14
See [UPSTREAM.md](vscode-webview://033qvjpetl305bdepurq1uea0p4etiimt8n72aoltnk8296m7gar/UPSTREAM.md) for full vendor attribution.