jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
508 stars 42 forks source link

adding lineHeight to MarkdownText with default TextUnit.Unspecified #44

Closed pitoszud closed 1 year ago

pitoszud commented 1 year ago

I added a lineHeight to the MarkdownText with a default TextUnit.Unspecified. This will give a line height to all markdowns if specified. This could be useful for a long paragraph text only, where changing @FontRes is not an option. The example text (as seen in the attached) has not been included in the sample module.

lineHeight: TextUnit = 34.sp

line_height_34_sp

lineHeight: TextUnit = TextUnit.Unspecified

default_line_height
jeziellago commented 1 year ago

Hi, @pitoszud Thank you for contributing!