First, link to the script in your HTML.
There are only two parameters to set:
- Elements – A CSS selector list of the elements you wish to modify.
- Method – Choose which rag-adjust method you want to employ.
- emphasis – Text of three or less words in bold or italics does not break across lines.
- small-words – Breaks lines before words of three or less characters.
- prepositions – Breaks lines before prepositions.
- dashes – Breaks lines before hyphens and dashes.
Rag Adjust will work in all modern browsers and IE8+.
Appendix: Prepositions matched