Just take the same approach that mathstodon does with their latex formatting, to wit: just barf the probably-human-unreadable format strings out over activity pub, and shrug when people complain because what else are you gonna do?
It isn’t like inline images work any better over activitypub in general (and even markdown/html is tricky, in the face of various mediocre mastodon client apps, some of which I use) and doing server-side conversion of latex (or whatever)to mathml is a nonstarter because of it will just be filtered out by clients anyway as unsupported and possibly malicious.
The least bad option might be something like asciimath (which can be prettyprinted via mathjax client javascript in the web view of the site) as its raw form is less awful to read than latex, and so would be more suited to viewing via activitypub or in a lemmy app.
I wonder what proportion of awful.systems users view it via the web interface.
It’s a long read, but a good one (though not a nice one).
Someone on mastodon (can’t remember who right now) joked that they were expecting the c++ committee to publicly support trump, in the hopes he would retract the usg memory safety requirements. I can now believe that they might have considered that, and are probably hoping he’ll come down in their favour now that he’s coming in.