Skip to content

Latex Equation renders inconsistently #2302

@j0m0k0

Description

@j0m0k0

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

The latex code I'm rendering using MathJax, runs correctly in the first render, then it will not render correctly. I guess it can be a cache problem. Any quick fix to avoid the caching is appreciated.

Sample code:

Hey this is a latex equation:
$$\begin{equation}
\{ x \mid x \text{ satisfies } P \}.
\label{eq:my_equation}
\end{equation}
$$

Steps To Reproduce

  1. Create a new post with math: true and use the sample code as the content.
  2. Render the page in the browser using (CMD/Control + Shift + R), everything should look fine.
  3. Refresh the page using F5 or browser's refresh button, the rendered equation is not centered and numbered anyome.

Expected Behavior

What I expected to see in step 3:

Image

What I actually see in step 3:

Image

You can see that the equation is not aligned center anymore and also there is no numbering on the right side.

Environment

  • Ruby: ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
  • Jekyll: jekyll 4.4.1
  • Chirpy: jekyll-theme-chirpy (7.2.4)

Anything else?

Any quick fix would be appreciated <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions