halilozercan / compose-richtext

A collection of Compose libraries for advanced text formatting and alternative display types.
https://halilibo.com/compose-richtext
Apache License 2.0
803 stars 67 forks source link

Revert LineHeight bug fix #132

Closed halilozercan closed 9 months ago

halilozercan commented 9 months ago

InlineContent is not supposed to have its own ParagraphStyle. That kind of workaround makes the content essentially "non-inline". Each inline content composable gets its own Paragraph. Instead, we should address the root of the problem which stems from the fact that default Material3 theming adds LineHeight by default.

Sample project now uses Material3 and overrides the default LineHeight to TextUnit.Unspecified in its theming. Inline content strictly respecting the line height argument should be addressed by the Compose team.