Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

KaTeX UPDATE #168

Closed
xinyu-yang opened this issue Apr 5, 2021 · 2 comments
Closed

KaTeX UPDATE #168

xinyu-yang opened this issue Apr 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@xinyu-yang
Copy link

KaTeX UPDATE

  • Feature 1
    It seems that katex has a new update and supports some new features (e.g., align, align*). Do you have a plan to update this lib?

Useful reference

https://github.com/KaTeX/KaTeX/releases/tag/v0.13.0

@xinyu-yang xinyu-yang added the enhancement New feature or request label Apr 5, 2021
@victor-pogor
Copy link
Member

Hi @xinyu-yang

I was thinking about it. I looked in the code and I don't like that we need to update manually the libs and also update this file.

So, I read about Include Dependencies In package.json / node_modules. I'm thinking of including all libs in package.json. But we will not have the CDN option since at the output we will have a bundle file. Still investigating...

@xinyu-yang
Copy link
Author

Hi @victor-pogor . Thank you for your patient answer.

Actually, I have tried the environment aligned with

\begin{aligned}
   a&=b+c \\
   d+e&=f
\end{aligned}

, which environment is supported by KaTeX v0.11.1 according to https://katex.org/docs/0.11.1/supported.html. But I can not get the right rendering, while other one-line formula surrounded by $$ can get the right rendering.

Fortunately, I see this halogenica/beautifulhugo#183, the solution is to replace \\ with \cr, which is

\begin{aligned}
   a&=b+c \cr
   d+e&=f
\end{aligned}

In this method, I will have to replace all the \\ with \cr in my posts (though not much). I'm not sure if \cr is the right usage, but I think this usage is not compatible with mathjax and latex.

So I just wonder if there is a method to make \\ work? Thank You!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants