in richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui/BasicRichText.kt [15:34]
public fun BasicRichText(
modifier: Modifier = Modifier,
style: RichTextStyle? = null,
children: @Composable RichTextScope.() -> Unit
) {
with(RichTextScope) {
RestartListLevel {
WithStyle(style) {
val resolvedStyle = currentRichTextStyle.resolveDefaults()
val blockSpacing = with(LocalDensity.current) {
resolvedStyle.paragraphSpacing!!.toDp()
}
Column(modifier = modifier, verticalArrangement = spacedBy(blockSpacing)) {
children()
}
}
}
}
}