Skip to content

Commit

Permalink
Merge pull request #143 from 4gus71n/main
Browse files Browse the repository at this point in the history
Fix for the bullet font size issue.
  • Loading branch information
jeziellago authored Jan 16, 2025
2 parents 020e861 + abfa808 commit 0b56eb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import android.text.Spanned
import android.widget.TextView
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.text.TextStyle
import coil.ImageLoader
import coil.decode.GifDecoder
import coil.decode.ImageDecoderDecoder
Expand Down Expand Up @@ -37,6 +38,7 @@ internal object MarkdownRender {
beforeSetMarkdown: ((TextView, Spanned) -> Unit)? = null,
afterSetMarkdown: ((TextView) -> Unit)? = null,
onLinkClicked: ((String) -> Unit)? = null,
style: TextStyle
): Markwon {
val coilImageLoader = imageLoader ?: ImageLoader.Builder(context)
.components {
Expand Down Expand Up @@ -84,6 +86,7 @@ internal object MarkdownRender {
} else {
builder.headingBreakColor(headingBreakColor.toArgb())
}
builder.bulletWidth(style.fontSize.value.toInt())
}

override fun configureConfiguration(builder: MarkwonConfiguration.Builder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ fun MarkdownText(
beforeSetMarkdown,
afterSetMarkdown,
onLinkClicked,
style
)
}

Expand Down

0 comments on commit 0b56eb4

Please sign in to comment.