Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.2 KB

File metadata and controls

68 lines (44 loc) · 2.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.9.6] - 2026-04-05

  • Skip hyphenation for text inside <code> elements

[0.9.5] - 2026-04-05

  • Use fontVariantCaps for Canvas-compatible font string synthesis

[0.9.4] - 2026-04-03

  • Skip leading glue and penalties when computing line content start, removing dependency on TeX's Restriction 2
  • Replace per-node running sums with prefix-sum lineMetrics in breakLines
  • Introduce PARAGRAPH_START sentinel for initial active node
  • Use suffix-minimum floor for smarter overfull-line pruning, with fallback-node guard for negative widths
  • Fix HTML justification to skip leading whitespace and correctly compute DOM ranges

[0.9.3] - 2026-04-03

  • Remove adjustmentRatioPenalty option
  • Simplify suffix-minimum breakpoint floor prepass
  • Inline best-by-state selection into the feasibility loop

[0.9.2] - 2026-03-30

  • Add adjustmentRatioPenalty option for custom looseness penalties

[0.9.1] - 2026-03-29

  • Use suffix-minimum floor for smarter overfull-line pruning

[0.9.0] - 2026-03-28

  • Rename package from tex-linebreak to knuth-plass-linebreak
  • Migrate build and test tooling from webpack/karma to vite/vitest
  • Exclude penalty width from widthToNextBox scan
  • Return adjustment ratio 0 for exact-fit lines with rigid glue
  • Require terminal forced break in breakLines
  • Preserve fitness class nodes during line breaking

[0.8.1] - 2025-08-04

  • Limit an optimization to only apply when no items have negative widths, shrink or stretch - robertknight#105

[0.8.0] - 2025-08-02

  • Support negative widths and stretchability/shrinkability (thanks @basil) - robertknight#103

[0.7.0] - 2024-01-15

[0.6.0] - 2021-12-28

The package's code has been converted to ES 2017+. As such it no longer supports IE 11 or other pre-2017 browsers.