Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 929 Bytes

File metadata and controls

26 lines (15 loc) · 929 Bytes

Changelog

Unreleased

0.0.2 - 2026-03-28

Added

  • { whiteSpace: 'pre-wrap' } mode for textarea-like text, preserving ordinary spaces, tabs, and hard breaks.

0.0.1 - 2026-03-27

Changed

  • Safari line breaking now has a clearer browser-specific policy path for narrow soft-hyphen and breakable-run cases.
  • Browser tooling is more stable: fresh per-run page ports, diagnostics derived from the public rich layout API, and a non-watch bun start by default.

0.0.0 - 2026-03-26

Initial public npm release of @chenglou/pretext.

Added

  • prepare() and layout() as the core fast path for DOM-free multiline text height prediction.
  • Rich layout APIs including prepareWithSegments(), layoutWithLines(), layoutNextLine(), and walkLineRanges() for custom rendering and manual layout.
  • Browser accuracy, benchmark, and corpus tooling with checked-in snapshots and representative canaries.