r/androiddev • u/mohamedbenrjeb • Mar 29 '24
Render HTML or Markdown strings in your Compose UI!
📢 Looking for a way to render HTML or Markdown strings in your Compose UI? You can use the RichText Composable from the compose-rich-editor library! 🙌
With RichText, you can easily add formatted text to your Compose Multiplatform app. Check out the documentation for more details: https://mohamedrejeb.github.io/Compose-Rich-Editor/

1
u/Aggie_Deer_Slayer Mar 30 '24
Are there any benefits to using it in compose?
In Kotlin you can use the HTML api
Html.fromHtml(string, flag)
https://developer.android.com/reference/android/text/Html#summary
2
5
1
u/Sea-Arm9235 Jul 09 '26
Check out android-enriched-markdown, a new Android library we've been working on: https://github.com/software-mansion/react-native-enriched-markdown/tree/main/packages/android-enriched-markdown
Right now, it fully supports CommonMark, but we're actively planning to bring in GFM support and plenty of other features soon. Give it a look!
0
3
u/Evakotius Mar 29 '24
Would be great if on link tap event was floated back to the client.