MathJax לא עובד באפשרויות סקר

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

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 לייקים

יהיה לי תיקון לכך בשבוע הבא.

2 לייקים

זה יהיה מעולה! אני חדש ברובי ועדיין מנסה להגדיר את סביבת הפיתוח. העזרה שלך תהיה הצלה גדולה! מצפה בקוצר רוח ל-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 לייקים

תודה רבה ל-@joffreyjaffeux על שיתוף ה-PR! למרות שאני לא יודע איך ה-PR פותר את הבעיה, אבל האלגנטיות והמהירות של השינוי מרשימות!

לייק 1

שלום @joffreyjaffeux, ניסיתי את הבנייה האחרונה עם התיקון שלך, וזה עובד כמצופה. הבעיה היחידה היא שהתיקון לא נראה מיושם בתצוגת תוצאות ההצבעה. זו בעיה קלה, אבל רק רציתי לשתף כאן למקרה שאתה מעוניין.

נושא זה נסגר אוטומטית 3 ימים לאחר התגובה האחרונה. לא ניתן להוסיף תגובות חדשות.