You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: