RE: https://aslakr.folk.ntnu.no/2025/12/en-mathml-blokk/

Og det virker, både i RSS og ActivityPub.

Det hadde vært fint om Mastodon slapp igjennom MathML, men i det minste slipper den igjennom tekstfeltet (annotation) som inneholder LaTeX iht. FEP-dc88

#WordPress #MathML #fepdc88 #Mastodon

@cheeaun With version 4.4 Mastodon will now slip trough the annotation part of a MathML as described in #fepdc88 <https://codeberg.org/fediverse/fep/src/branch/main/fep/dc88/fep-dc88.md> by @pounce. This annotation can be LateX-like which clients as a stop gap solution can render using things like Temml.

But, given that there now is defined a list of safe MathML elements and attributes <https://w3c.github.io/mathml-docs/mathml-safe-list> which is used in the sanitizer api, Mastodon could stop filtering out MathML and let the browser natively render it.

fep/fep/dc88/fep-dc88.md at main

fep - Fediverse Enhancement Proposals

Codeberg.org

@[email protected] Hos mathstodon.xyz som har implementert #FEPdc88 (tror jeg) så ser det omtrent slik ut:

#MathML #ActivityPub #mathstodon

Test av fep-dc88 (MathML i ActivityPub) fra WordPress

WordPress-instikket ActivityPub (AP) tillater fra versjon 1.0.2 mer eller mindre alle HTML-elementer, dvs. en kan legge til MathML. Det blir da opp til AP-mottakeren, f.eks. Mastodon, om en skal fjerne disse elementene, noe de fleste pr. i dag vil gjøre.

Forslaget FEP-dc88: Formatting Mathematics forsøker å rydde opp i det ved å beskrive hvordan MathML kan tilbys, eller alternativt strippes slik at en kun står igjen med innholdet i <annotation> som ofte da vil inneholde en mer tekstlig representasjon.

Følgende er fra eksempelet i FEP-dc88:

LaTeX i <annotation>:

I have a truly marvelous proof that $x^n + y^n \ne z^n$ which this note is too small to contain!

AsciiMath i <annotation>:

I have a truly marvelous proof that x^n + y^n ≠ z^n which this note is too small to contain!

ActivityPub

Connect your site to the Open Social Web and let millions of users follow, share, and interact with your content from Mastodon, Pixelfed, and more.

WordPress.org

@Edent Some things might be better solved if #Mastodon† supported #MathML Core as suggested in https://github.com/mastodon/mastodon/issues/26943

† and other #ActivityPub software

#MathMLCore #FEPdc88

Implement FEP-dc88: Formatting Mathematics · Issue #26943 · mastodon/mastodon

Pitch Currently, several instances (such as https://mathstodon.xyz and https://types.pl) implement mathematical formatting locally, rendering mathematics between certain delimeters. However, this c...

GitHub