mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 09:58:45 +01:00
fix(common-ui): markdown support in community info
This commit is contained in:
parent
38a49f94fe
commit
2d3108715a
@ -31,6 +31,7 @@ import com.github.diegoberaldin.raccoonforlemmy.core.appearance.di.getThemeRepos
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.appearance.theme.Spacing
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.architecture.bindToLifecycle
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.commonui.components.BottomSheetHandle
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.commonui.components.PostCardBody
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.commonui.di.getCommunityInfoViewModel
|
||||
import com.github.diegoberaldin.raccoonforlemmy.domain.lemmy.data.CommunityModel
|
||||
|
||||
@ -97,11 +98,9 @@ class CommunityInfoScreen(
|
||||
fontScale = fontScale,
|
||||
),
|
||||
) {
|
||||
Text(
|
||||
PostCardBody(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
text = uiState.community.description,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ fun PostCardTitle(
|
||||
|
||||
Markdown(
|
||||
modifier = modifier,
|
||||
content = text,
|
||||
content = text.replace("&", "&"),
|
||||
typography = markdownTypography(
|
||||
h1 = MaterialTheme.typography.titleLarge,
|
||||
h2 = MaterialTheme.typography.titleLarge,
|
||||
|
Loading…
x
Reference in New Issue
Block a user