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

Replace MathJax with KaTeX #6507

Open
vojtechjelinek opened this issue Mar 24, 2019 · 8 comments
Open

Replace MathJax with KaTeX #6507

vojtechjelinek opened this issue Mar 24, 2019 · 8 comments
Labels
enhancement Label to indicate an issue is a feature/improvement frontend needs design doc

Comments

@vojtechjelinek
Copy link
Member

KaTeX seems to be far quicker alternative for MathJax. We should investigate if the formats used in MathJax are the same as in KaTeX (probably yes) and then try to replace MathJax with KaTeX.

Possible replacement for #2506

@import-keshav
Copy link
Contributor

import-keshav commented Mar 25, 2019

Hello @vojtechjelinek @NishealJ, should you think it should be done in GSoC project Upgrade Third Party Libs ?

@NishealJ
Copy link
Contributor

Hi @vojtechjelinek @import-keshav,

We are using MathJax v2.6.0 and the latest is v2.7.X they have mentioned preview speed improvements in their changelog, lets upgrade Mathjax and see if there is any significant difference.

If not we will move to kaTex ?

@vojtechjelinek
Copy link
Member Author

Comparison between KaTeX and MathJax should be done, in terms of rendering speed, the library size, simplicity and then we should decide on that comparison.

@NishealJ
Copy link
Contributor

Hi @vojtechjelinek & @import-keshav,

I’ve upgraded MathJax to 2.7.5, i dint find any noticeable change after upgrade in terms of speed and library size.

I’ve added upgrading MathJax to 2.7.5 in my GSOC proposal for the project Upgrade Third-party Libraries. Can i also an alternative option of moving into KaTex with a detailed design and comparison docs?

@NishealJ
Copy link
Contributor

Hi,

Seems like there is no KaTex plugin for CKEditor-4 & CKEditor-5 they only have it for MathJax.

@vojtechjelinek
Copy link
Member Author

@NishealJ You can analyze it in your GSoC proposal.

@vojtechjelinek vojtechjelinek moved this from Medium priority to Low Priority in Speed improvements Jan 26, 2020
@Vinit-Dantkale
Copy link
Contributor

Vinit-Dantkale commented Mar 2, 2020

Hi @vojtechjelinek , @import-keshav , @NishealJ this seems familiar to what we're trying to do. If you can enlighten about what all did you try & related info/suggestions, do tell me.
Also, would like to know if any of these can be a good alternative?

@NishealJ
Copy link
Contributor

NishealJ commented Mar 2, 2020

Hi @Vinit-Dantkale,

Mathjax, as you know, is a library that helps in displaying mathematics eqs better similar to kaTeX we currently use Mathjax(I believe) the problem with Mathjax is that the library files are really heavy read here and it renders comparatively slower than KaTex see this to know more.

We dint move to KaTex yet because our RTE i.e CKeditor4 it has an inbuilt plugin for MathJax but there is no plugin for KaTex hence, it will be difficult to input Katex through RTE also you've to migrate it too, we also looked for a converter but it dint help, there might be some possibilities now(make SVG Images).

@seanlip might help you to know more, Also I see two projects which may make structural changes to the RTE parallelly so please make sure that you know all your blocker beforehand.

@kevintab95 kevintab95 added the enhancement Label to indicate an issue is a feature/improvement label Aug 30, 2022
@seanlip seanlip removed this from Low Priority in Speed improvements Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Label to indicate an issue is a feature/improvement frontend needs design doc
Projects
Status: Todo
Development

No branches or pull requests

6 participants