MathJax werkt niet in pollopties

Not sure if this should be a bug for the MathJax plugin, but when you add a MathJax expression to a poll, it won’t be rendered correctly (MathJax renders properly in topics body and it also works in the poll preview panel, see screenshot below).

A live repro is at Just a random math exercise - 6/17/2025 (even harder!!)

1 like

Found this post and this is a known issue. I’ll need to check how hard to make the code change. Rendering math inside polls - Feature - Discourse Meta

2 likes

Ik heb volgende week een oplossing hiervoor.

2 likes

Dit wordt geweldig! Ik ben nieuw in Ruby en probeer nog steeds de dev-omgeving in te stellen. Uw hulp zal een grote redding zijn! Ik kijk uit naar uw PR.

I’m afraid you won’t learn much from the change, it’s a little bit of a dark magic change.

Poll is an old plugin and it’s probably doing something incorrect which forces me to do this here. I saw the issue but honestly didn’t dig the root cause as this interaction discourse-math/poll is quite a niche subject in our codebase and couldn’t justify spending days on it.

4 likes

Bedankt @j.jaffeux voor het delen van de PR! Hoewel ik niet weet hoe de PR het probleem oplost, zijn de elegantie en de snelheid van de wijziging indrukwekkend!

1 like

Hallo @j.jaffeux, ik heb de nieuwste build met jouw fix geprobeerd en het werkt zoals verwacht. Het enige probleem is dat de fix niet lijkt te zijn toegepast op de Vote results view. Dit is een klein probleem, maar ik wilde het hier delen voor het geval je geïnteresseerd bent.

Dit onderwerp werd automatisch gesloten 3 dagen na het laatste antwoord. Nieuwe antwoorden zijn niet meer toegestaan.