Has anyone hit upon a low-effort solution to parse...
# compose-desktop
d
Has anyone hit upon a low-effort solution to parse Markdown into Compose's
AnnotatedString
? *Erik Hellman*'s article discusses doing this; wondering if any fuller formed alternatives sprang up in the last year.
r
Use regex
😒 1
d
Seriously?
m
d
Thanks @msink I'd seen this before but initially discounted it as it generates HTML, looking closer, I see the output stage could be extended with a new generator class for `AnnotatedString`s 🤔💡
m
It's used in Dokka
👍 1
z
AnnotatedString simply can't express a lot of markdown constructs, so if you really want to support full markdown you'd need something like https://github.com/halilozercan/compose-richtext (which recently got multiplatform support)
👍 1