mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 11:07:04 +05:30
parent
82b07496e9
commit
b0432b848d
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,9 @@ internal fun ThemedRichText(text: String, modifier: Modifier = Modifier) {
|
||||||
textDecoration = TextDecoration.Underline,
|
textDecoration = TextDecoration.Underline,
|
||||||
)
|
)
|
||||||
|
|
||||||
val segments = parseSegments(text)
|
// Manually replace the HTML encoded angle brackets as a terrible hack that avoids code blocks
|
||||||
|
// looking terrible.
|
||||||
|
val segments = parseSegments(text.replace("<", "<").replace(">", ">"))
|
||||||
|
|
||||||
Column(modifier = modifier) {
|
Column(modifier = modifier) {
|
||||||
for (segment in segments) {
|
for (segment in segments) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue