davidmerfield/Typeset

Request: Widow control (widont)

Open

#70 opened on May 26, 2021

 (0 comments) (2 reactions) (1 assignee)JavaScript (54 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (2,679 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.)

Contributor guide