Skip to main content


En MathML-blokk


WordPress 6.9 har fått en byggestein/blokk for MathML:

x1,2=−b±b2−4⋅a⋅c2⋅ax_{1,2} = \frac{-b \pm \sqrt{b^2 – 4 \cdot a \cdot c}}{2 \cdot a}

Hvordan fungerer det i RSS og ActivityPub?

This entry was edited (4 days ago)
in reply to Aslak Raanes

Can you post
\sum\limits_{n\in\mathbb{N}} n = 1 + 2 + 3 + \dots = - \frac{1}{12}

(I'm not 100% sure that's how you only do a lower limit) and
\int\limits_{x=-\infty}^{\infty} \mathrm{e}^{- x^2} dx = \sqrt{\pi}

Thanks. I'm interested in how the MathML turns out. Also do you know what wordpress uses for the conversion? When I looked for something latex -> mathml a while back the result was annoying, e.g. sympy does something odd.
in reply to Helge

I'm guessing #Temml temml.org based on a quick glance on github.com/WordPress/gutenberg… @aslakr@aslakr.folk.ntnu.no
in reply to Aslak Raanes

Thank you for doing the research.

So I guess the wordpress math flow is: Gutenberg Block editor converts the latex to MathML and the backend just stores the HTML code.

I have no idea if this is actually how wordpress works, but it sounds plausible.