Problem
I noticed that the current markdown parser only supports a very limited set of markdown concepts and interprets some of them incorrectly (e.g. if a line contains the sequence **, we simply make that line as a whole bold, no matter if it is terminated with a ** or not).
Solution
Introduce a markdown parsing library or check for system-provided solutions to support markdown according to specification.
Additional context
Instead of building our own custom MarkdownElement values, we could emit AnnotatedString just like on iOS.
It may make sense to integrate https://github.com/JetBrains/markdown similar to how it is done in https://github.com/volo-droid/Markdown-to-AnnotatedString and then create Text composables from that.
Code of Conduct
Problem
I noticed that the current markdown parser only supports a very limited set of markdown concepts and interprets some of them incorrectly (e.g. if a line contains the sequence
**, we simply make that line as a whole bold, no matter if it is terminated with a**or not).Solution
Introduce a markdown parsing library or check for system-provided solutions to support markdown according to specification.
Additional context
Instead of building our own custom MarkdownElement values, we could emit AnnotatedString just like on iOS.
It may make sense to integrate https://github.com/JetBrains/markdown similar to how it is done in https://github.com/volo-droid/Markdown-to-AnnotatedString and then create
Textcomposables from that.Code of Conduct