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

Getting Mathjax 3.0.1 to work with Gitit #647

Open
hshackle opened this issue Mar 5, 2020 · 2 comments
Open

Getting Mathjax 3.0.1 to work with Gitit #647

hshackle opened this issue Mar 5, 2020 · 2 comments

Comments

@hshackle
Copy link

hshackle commented Mar 5, 2020

I'm unsure if this is an issue with gitit itself or just a problem with me not knowing how to properly use Mathjax, but I would greatly appreciate help regardless. Gitit by default uses Mathjax 2.7.0, and I would like to modify the configuration file to use Mathjax 3.0.1 (or 3.0.0 would also work). I've tried editing the configuration file to use

mathjax-script: https://cdn.jsdelivr.net/npm/[email protected]/es5/node-main.min.js

and

mathjax-script: https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.1/es5/startup.js

but neither of them works, and pages just display the raw text - I suspect I'm just providing the wrong script. Can someone point me in the right direction with getting this to work? Thanks.

@sternenseemann
Copy link
Contributor

I've tried getting to work the latest version of MathJax as well with no luck, seems like there were significant changes which break the way gitit uses MathJax.

You'll have to pin MathJax to version 2.7.0: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML-full

@zaxtax
Copy link
Contributor

zaxtax commented Apr 30, 2021

The link you want is https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js but you'll also need to change static/js/preview.js since MathJax 3.x does not use Queues as much as just ES6 promises.

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

3 participants