Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separating a separate artifact for rich html text #250

Open
Shusek opened this issue Apr 9, 2024 · 1 comment
Open

Separating a separate artifact for rich html text #250

Shusek opened this issue Apr 9, 2024 · 1 comment

Comments

@Shusek
Copy link

Shusek commented Apr 9, 2024

I noticed that the library replaces very well known from Android View Html.fromHtml() as one of the better ones currently available html parser.

However, many people are not interested in editing HTML, so usage RichTextEditor(readonly=true) is slightly unnecessary. Perhaps it would be best to separate parsing html to AnnotatedString into separate library artifact?

Then we could use material3 components like Text(AnnotatedStringHtmlParser.parse(content))

@MohamedRejeb
Copy link
Owner

Hi,
Sorry for late reply.
Makes sense, I will think about it.
Also, you can use RichText composable for read-only, it handles links under the hood and it may handle other things in the future such as images.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants