:grey_question: Is there a function to transform a...
# compose
g
Is there a function to transform an html string into an
AnnotatedString
?
a
Nope. We've considered something like markdown/commonmark converters but html sets expectations of completeness that we'd prefer to avoid. We kind of regret having the minimal html-Spanned string parsers in Android for similar reasons.
It'd be a good opportunity for a community library now that the compose API is more stable though 🙂
4
g
yeah I def understand the reluctance to putting a function like this into compose UI. a community-driven library is probably better 👍
l
yes. community library please! This is much better off there than in 1p compose API IMO
s
Performance was also a concern since parsing is expensive.
z
I’m planning to spend the weekend upgrading this library to the new beta and getting a release out. @Halil Ozercan was awesome and added markdown support, it doesn’t do html yet but it’s just a matter of elbow grease!
❤️ 11
s
looks awesome
it has some of the things that we wanted to have, can I request features 😄 seriously
👌 1
The Table example there is so awesome 🙂 I fought hard not to put concepts like that into base Text 🙂
z
you might say the feature was… tabled
🤦‍♂️ 2
💀 1
s
@Zach Klippenstein (he/him) [MOD] this is excellent
💯 2