Skip to content

Update KaTeX to 0.10.0

Erik Demaine requested to merge edemaine/gitlab-ce:master into master

What does this MR do?

Update KaTeX to 0.10.0.

Are there points in the code the reviewer needs to double check?

I guess you might want to wait for a non-beta version, but this beta has proved stable (relatively few commits since its release), and KaTeX doesn't do releases very often. Now updating to nonbeta version, 0.10.0. (I am one of the KaTeX contributors.)

I'm not a yarn expert but I think I did yarn upgrade katex@^0.10.0 correctly.

It might be worth checking out the new strict and maxExpand settings, but I believe the defaults should be fine.

I added support for KaTeX's \def/\newcommand macro definitions across multiple math objects, simply by passing a common macros object between these calls. I'm not familiar with your testing harness, or even your build process, so I haven't done any tests. Pointers appreciated.

Why was this MR needed?

I noticed that the KaTeX dependency was back at 0.8.3 because of a KaTeX issue raised by a Gitlab.com user: https://github.com/Khan/KaTeX/issues/1460

KaTeX has had a lot of active development since 0.8.3. See full release notes. Some highlights include better Unicode support, user-level macro support, and line breaking (both automatic and manual).

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Erik Demaine

Merge request reports

Loading