Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior(GitHub now use MathJax) #28

Open
AlisonVilela opened this issue May 25, 2022 · 4 comments
Open

Unexpected behavior(GitHub now use MathJax) #28

AlisonVilela opened this issue May 25, 2022 · 4 comments

Comments

@AlisonVilela
Copy link

I don't know if it was a Chrome update or something from Github, but a strange behavior caused my equations to disappear, here's an example below, where in the first equation I leave a blank line before the equation, in the second equation I don't leave an empty line, I put a text before and that makes the equation appear

First equation

$$\huge
G_{\mu\nu}=8\pi G(T_{\mu\nu}+\rho_{\Lambda}g_{\mu\nu})
$$

Second equation
$$\huge
\int_{a}^{b} f'(x)dx=f(b)-f(a)
$$

First equation

$$\huge G_{\mu\nu}=8\pi G(T_{\mu\nu}+\rho_{\Lambda}g_{\mu\nu}) $$

Second equation
$$\huge
\int_{a}^{b} f'(x)dx=f(b)-f(a)
$$

@AlisonVilela
Copy link
Author

Here's a screenshot of my view

image

@AlisonVilela
Copy link
Author

But sometimes this bug changes and looks like this
image

@AlisonVilela
Copy link
Author

You can see this issue in the test markdown https://github.com/AaronCQL/katex-github-chrome-extension/blob/master/markdown/test.md

@AlisonVilela
Copy link
Author

I found out why, recently Github started using MathJax which caused this conflict

https://github.blog/changelog/2022-05-19-render-mathematical-expressions-in-markdown/

@AlisonVilela AlisonVilela changed the title Unexpected behavior Unexpected behavior(GitHub now use MathJax) May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant