# Inline math not rendering in Wordpress embed

**URL:** https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309
**Category:** UX
**Tags:** pr-welcome, math
**Created:** [July 11, 2023, 10:29pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309 "2023-07-11T22:29:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bbirkett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bbirkett/32/249597_2.png) [@bbirkett](https://meta.discourse.org/u/bbirkett)
#### Post date: [July 11, 2023, 10:29pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/1 "2023-07-11T22:29:44Z")

</div>

I’m working to embed linked Forum Topics on some of our Wordpress posts/pages, and discovered that while display math works fine in the embed, inline math is not getting converted.

An example is on our DEV site as the single “Notable Reply” here: [https://mathenodev7.wpengine.com/4-steps-solve-related-rates-problem-part-2/](https://mathenodev7.wpengine.com/4-steps-solve-related-rates-problem-part-2/)

The non-rendering bits are wrapped in `<span class="math">...</span>`, with no MathJax present.  
By contrast, the correctly rendered bits, are wrapped in `<div> ... ` and then have the expected `<mjx-container class="MathJax ...>` etc.

Thanks in advance for insights into how to get inline math rendering as well!

---

<div class="post-metadata">

### Author: ![bbirkett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bbirkett/32/249597_2.png) [@bbirkett](https://meta.discourse.org/u/bbirkett)
#### Post date: [July 24, 2023, 7:47pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/2 "2023-07-24T19:47:27Z")

</div>

Bumping this item with the hope that someone might have a suggestion.

Really appreciate this community, and thanks in advance again for any thoughts.

 ![Screenshot 2023-07-24 at 12.41.32 PM](https://global.discourse-cdn.com/meta/original/4X/e/5/3/e53c21d05ccb9c5e6c6e9900d55f496d6a30bba9.png)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [July 25, 2023, 12:13pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/3 "2023-07-25T12:13:34Z")

</div>

Hi, Bruce,  
Just to be sure, is the post using the #math plugin on Discourse?

---

<div class="post-metadata">

### Author: ![bbirkett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bbirkett/32/249597_2.png) [@bbirkett](https://meta.discourse.org/u/bbirkett)
#### Post date: [July 25, 2023, 7:13pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/4 "2023-07-25T19:13:26Z")

</div>

Hi, @Canapin,

Yes, we’re using the official Discourse Math plugin. The forum is hosted by the great folks at [Communiteq](https://www.communiteq.com/).

Everything works perfectly [on the forum itself](https://community.matheno.com/t/4-steps-to-solve-any-related-rates-problem-part-2/100/3); it’s just the Wordpress embed where inline math doesn’t render as it should.

Thanks for the reply and checking, and for any suggestions.

---

<div class="post-metadata">

### Author: ![bbirkett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bbirkett/32/249597_2.png) [@bbirkett](https://meta.discourse.org/u/bbirkett)
#### Post date: [August 2, 2023, 5:44pm UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/5 "2023-08-02T17:44:58Z")

</div>

I tracked this down: While Discourse is running MathJax v2.7.5, the current version is v.3.2.2, which is what we run on our site. Since [the config file is handled differently between v2 and v3](https://docs.mathjax.org/en/v3.2-latest/web/configuration.html#configuration), our config isn’t getting applied to what Discourse displays on the embed on our site. Among other things, that means that the single dollar signs aren’t being recognized as indicating inline math, since that’s not the default in MathJax (or LaTeX, for that matter), and so must be specified via local config.

MathJax is [now in the process of rolling out v4](https://github.com/mathjax/MathJax/releases).

Curious @sam as to whether there are plans to update the version of MathJax Discourse is using?

Really appreciate that Discourse has the capability to display beautiful math via MathJax!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 7, 2023, 2:42am UTC](https://meta.discourse.org/t/inline-math-not-rendering-in-wordpress-embed/271309/6 "2023-08-07T02:42:03Z")

</div>

> [@bbirkett](#):
>
> Curious @sam as to whether there are plans to update the version of MathJax Discourse is using?

Absolutely open to it, if someone feels like helping out I would be delighted.
