Displaying @pixelfed post captions in our app must be easy, right?
Not really! I recently refactored this, and it's becoming quite complex.
Each caption is rendered using a pipeline of the following steps:
Normalize > Tokenize > Autolink > EntityRenderer > Accessibility > Read more > Style
When you tap on a mention, we check to see if it's remote (even if it's just the @ username), and use clever logic to load the profile even if the server doesn't know it yet.
Much better now, shippin soon