-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Improper spacing between lines in KaTex aligned expressions #3527
Comments
@jeffrey-xiao any idea what's happening here? |
I've narrowed down the issue to this issue: KaTeX/KaTeX#531 It seems to be fixed in a later version of |
Yes, maybe updating the version of KaTeX used in |
@thomaskuntzz could you file a PR updating the package? |
package.json of gatsby-remark-katex that is :-) |
Sure, but I can't test locally... |
Updating the version of KaTeX used by |
Update: Updating the version of KaTeX used by
gatsby-remark-katex
solved the problem!I'm using the
gatsby-remark-katex
plugin to render math expressions in Gatsby. When writing expressions aligned across multiple lines with\begin{aligned} ... \end{aligned}
, the lines aren't spaced properly (too close to each other). Here is what I get:I guess the problem doesn't come from my config, because the screenshot is from the official Gatsby KaTeX example to which I just added the following expression:
The thing I don't get is that if I create a barebones HTML file in which I include the two links the docs says to include and just try to render the same expression, I get a far better spacing:
And I get good spacing too when using the preview on KaTe's website.
That's why I suspect the issue might have something to do with the way KaTex support is implemented in Gatsby. I'm not 100% sure it comes from the implementation in Gatsby, because the docs says that:
But if the problem is with KaTex itself, then I don't know why it works better when I try in a simple HTML page or on the demo on the official site...
Any one knows if this comes from KaTeX or Gatsby and how to fix it?
Thanks!
The text was updated successfully, but these errors were encountered: