ArnyminerZ / MarkdownText

A Jetpack Compose component used for displaying Markdown-formatted text.
Apache License 2.0
11 stars 1 forks source link

Feature: Provide Markdown annotated text for TextFields #25

Open patrickunterwegs opened 1 year ago

patrickunterwegs commented 1 year ago

Hey @ArnyminerZ !

In jtx Board there was also the request to better support markdown in TextFields. Basically the idea is to show the text with the formatting but with the markdown indicators visible. In the best case those markdown indicators could have a lower opacity. The previously used library was actually doing that, so that feature got kind of lost now and it would be nice if we could add it again.

The TextField also takes a "TextFieldValue()" which accepts an annotated string. So maybe we can have a look if the function String.markdownAnnotated() can be adapted to do this. What do you think?

ArnyminerZ commented 1 year ago

Mmmmh, it's definitely possible. I can take a look at this. I see how it can be useful.