davidmerfield/Typeset

Request: Widow control (widont)

Ouverte

#70 ouverte le 26 mai 2021

 (0 commentaire) (2 réactions) (1 personne assignée)JavaScript (54 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (2 679 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur