M CHANGELOG.md => CHANGELOG.md +3 -0
@@ 11,6 11,9 @@
* Added option to prevent making boxes invisible when they contain no glyphs
and no forced (hard) line breaks.
+* Added function `paragraphSafeWidth` to help calculating max-content width
+ for CSS.
+
* Text will now overflow the end edge of the paragraph according to the
text direction of the root box, instead of always overflowing the right edge.
M lib/Data/Text/ParagraphLayout/Rich.hs => lib/Data/Text/ParagraphLayout/Rich.hs +1 -0
@@ 52,6 52,7 @@ module Data.Text.ParagraphLayout.Rich
-- * Output layout
, layoutRich
, ParagraphLayout (ParagraphLayout, paragraphRect, paragraphFragments)
+ , paragraphSafeWidth
, Fragment
( Fragment
, fragmentUserData