Hacker GitHub

← All repos

robertknight/tex-linebreak

View on GitHub ↗ ★ 200 TypeScript

JavaScript implementation of the Knuth-Plass linebreaking algorithm

6 mentions on Hacker News by 5 people: 1 story, 5 comments · first 2020-05-23 · latest 2026-05-08

Mentions per year 6 mentions · busiest year 2020 (3)
20082026
  1. …make this site look even better with minimal effort. [0] https://commoncog.com/cash-flow-games/ [1] https://github.com/robertknight/tex-linebreak
    comment by OisinMoran · 2025-11-14 · in Operating Margins
  2. …why not the TeX algorithm itself!? There's this lovely package that works wonderfully on the web https://github.com/robertknight/tex-linebreak?tab=readme-ov-... And if you want to play around with a live example to check the performance, I…
    comment by OisinMoran · 2025-04-08 · in Better typography with text-wrap pretty
  3. …which tries to find the most visually-pleasing place to break lines. Look at the screenshots of https://github.com/robertknight/tex-linebreak to see the difference. It can be rather stark.
  4. …algorithm. Check out [1] and [2] for examples. [0]: https://i.imgur.com/65ICUVW.png [1]: https://github.com/robertknight/tex-linebreak [2]: https://github.com/bramstein/typeset
  5. …https://www.w3.org/TR/css-text-4/#text-wrap [2] https://github.com/w3c/csswg-drafts/issues/672 [3] https://github.com/robertknight/tex-linebreak