davidmerfield / davidmerfield/Typeset

Add support for avoiding widows

Open
#34 3 comments 0 reactions 1 assignee Claimed by @danielhaim1 View on GitHub
enhancement
Dominant language
JavaScript
Stars
2.7k
Forks
53
PR merge metrics
No merged PRs in 30d

Description

I would like to avoid the last 2 words in a paragraph from appearing on the last line by themselves.

For now I've been hacking around this by manually wrapping the last few words in a with a class that typeset is configured to ignore (to avoid soft-hyphens) and manually replacing spaces between those words with  .

Was this functionality intentionally omitted? If not, I'm happy to take a shot at implementing it myself.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.