mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57: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,
|
||||
)
|
||||
|
||||
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) {
|
||||
for (segment in segments) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue