Math in chat: troubleshooting?

Are there special steps require to enable math in chat? On my instance (Discourse 3.1, with

https://github.com/discourse/discourse-math/commit/0d8f41759f2a7957486e02c9c5ea34160f6ac1f0

which includes the chat+math support mentioned in this post)

math works fine in normal topics, but in chat, it does not appear to work. Am I missing a step? Anything I could do to troubleshoot?

Thanks!

1 Like

I’ve done a little bit of digging. It seems that, at this point in the code:

it is assumed that the elements to be put through MathJax have a math CSS class. But a test chat message (I’m using Test $\alpha$ math?) does not seem to have any such elements when the DOM elements are run through the registered decorateChatMessage callback.

1 Like

Good catch thanks. This should be fixed by:

https://github.com/discourse/discourse-math/pull/73

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.