plugins - Making Mathjax dynamic so it renders input without page refresh

admin2025-04-19  0

I use the Simple Mathjax plugin on my Wordpress site to allow users to add nicely formatted mathematics by writing it within dollar signs, $...$ or $$...$$.

This works on pages and in posts but not in chat windows.

After reading much documentation and searching for answers to my issue, I found out that the MathJax script is run at onload of the page itself. So, after page refresh. Then all $...$ $$...$$ occurrences are formatted nicely.

But I need the MathJax rendered dynamically, so it will appear nicely formatted when posted as a message in a chat without requiring a page refresh.

Basically, I need the functionality which in made in this link.

As far as I can see in the MathJax documentation, there is a Typeset command that should make dynamic math formatting possible with a line like:

MathJax.Hub.Queue(["Typeset",MathJax.Hub]);

But I am not sure how to input this into the Wordpress plugin. Any advice on this?

I use the BuddyBoss theme and platform for my Wordpress site. If it is of any help, here is the Simple MathJax settings page:

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745072309a283357.html

最新回复(0)