davidmerfield/Typeset

Request: Widow control (widont)

Open

#70 aperta il 26 mag 2021

Vedi su GitHub
 (0 commenti) (2 reazioni) (1 assegnatario)JavaScript (61 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (2395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor