davidmerfield / Typeset

An HTML pre-proces­sor for web ty­pog­ra­phy
https://typeset.lllllllllllllllll.com/
Creative Commons Zero v1.0 Universal
2.41k stars 52 forks source link

Request: Widow control (widont) #70

Open rootwork opened 3 years ago

rootwork commented 3 years ago

This is a great library! Thanks so much for maintaining it.

I'd love to see an option for controlling widows. For instance typogr.js uses the "widont" pattern of replacing the space between the last two words in a block with  .

(Typographically a widow is actually a single line on a wrapped paragraph rather than a single word on a wrapped line, but on the web the usage seems to be mostly about not leaving a single word, since multicolumn layouts are less common.)