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
20082026
-
…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 -
…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 -
…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.
comment by chrismorgan · 2020-07-28 · in Perfect Edition: A lightweight, responsive web e-book template -
…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
comment by vngzs · 2020-07-28 · in Perfect Edition: A lightweight, responsive web e-book template -
…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
comment by mpetroff · 2020-05-23 · in Show HN: LaTeX.css – Make your website look like a LaTeX document