noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.68k stars 298 forks source link

Custom plugin: Asynchronously change text #468

Open stefan-niedermann opened 5 months ago

stefan-niedermann commented 5 months ago

I am currently working on a plugin based on and similar to your samples.

Additionally I want to replace the text @example with John Doe. The problem is, that I need to do perform network requests to fetch the actual display names which I want to replace the user name with.

Do you have any guidance for that? I know that asynchronously loading and applying stuff is possible so far (AsyncDrawableScheduler and image loading in general), but I have not seen any possibility to replace actual text content asynchronously. Any idea? :slightly_smiling_face: