so I do have that, which will handle the HTML automatically in to an annotated string, but I need to somehow add the mention and the emoji annotations to that
2 quick options: - build the parsed HTML annotated string, then just get the text from there, and do my current link and emoji annotations. but that'd leave me without handling stuff like markdown - before parsing the HTML, add HTML tags for the mentions and the emojis
anyway, I've seen that mentions are already being processed as links. and I already get an array with a list of mentions from the API. so what I'm gonna do is just implement the link click handler logic to check if the url is in that list of mentions, and if it is, override the browser opening and instead open the profile screen
the bad thing? Iceshrimp.js doesn't seem to have that, so I'll have to figure something out