@captainchaos Well, its more complicated than that.
Mastodon and Pixelfed do provide mentions and hashtags as lists in the federated activity, you can't just trust the HTML itself because not every platform uses the same attributes
We can use the mention/hashtag lists to build the entitymap with indices we can provide to clients so they can properly implement deep linking