最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览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:

发布评论

评论列表(0)

  1. 暂无评论