Widont Modifier#
Attempts to prevent widows (a line with a single word) in a string by adding non-breaking spaces between the last two words of each paragraph.
The first parameter allows you to customize the number of words to add non-breaking spaces to.
string: I Just Want Pretty Headlines and Sentencesyamlyaml
{{ string | widont }}{{ string | widont(4) }}antlersantlers
I Just Want Pretty Headlines and SentencesI Just Want Pretty Headlines and Sentenceshtmlhtml
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page