fix: manually patch HTML entities

Fixes #904
This commit is contained in:
Harsh Shandilya 2025-07-21 23:48:28 +05:30
parent 82b07496e9
commit b0432b848d

View file

@ -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("&lt;", "<").replace("&gt;", ">"))
Column(modifier = modifier) {
for (segment in segments) {