v0.0.5
Added 4
- Add geometry-first rich line helpers for manual layout work: measureLineStats(), measureNaturalWidth(), layoutNextLineRange(), and materializeLineRange()
- Add @chenglou/pretext/rich-inline, a narrow helper for inline-only rich text, mentions/chips, and browser-like boundary whitespace collapse
- Add { wordBreak: 'keep-all' } support on prepare() / prepareWithSegments() for CJK and Hangul text
- Add a virtualized markdown chat demo for rich inline text and pre-wrap layout
Changed 1
- Make prepare-time analysis more resilient on long mixed-script, CJK, Arabic, repeated-punctuation, and other degenerate inputs
Fixed 2
- Fix mixed CJK-plus-numeric runs, keep-all mixed-script boundaries, and long breakable runs to stay closer to browser behavior
- Fix rich-path bidi metadata and CJK detection to handle the relevant astral Unicode ranges correctly
Added
- Geometry-first rich line helpers for manual layout work:
measureLineStats(),measureNaturalWidth(),layoutNextLineRange(), andmaterializeLineRange(). @chenglou/pretext/rich-inline, a narrow helper for inline-only rich text, mentions/chips, and browser-like boundary whitespace collapse.{ wordBreak: 'keep-all' }support onprepare()/prepareWithSegments()for CJK and Hangul text.- A virtualized markdown chat demo for rich inline text and
pre-wraplayout.
Changed
- Prepare-time analysis is more resilient on long mixed-script, CJK, Arabic, repeated-punctuation, and other degenerate inputs.
Fixed
- Mixed CJK-plus-numeric runs, keep-all mixed-script boundaries, and long breakable runs now stay closer to browser behavior.
- Rich-path bidi metadata and CJK detection now handle the relevant astral Unicode ranges correctly.