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

rehype-mathjax: mathjax is 500kb+ minzipped #42

Closed
wooorm opened this issue Apr 20, 2020 · 2 comments · Fixed by #43
Closed

rehype-mathjax: mathjax is 500kb+ minzipped #42

wooorm opened this issue Apr 20, 2020 · 2 comments · Fixed by #43
Labels
💪 phase/solved Post is done 🦋 type/enhancement This is great to have

Comments

@wooorm
Copy link
Member

wooorm commented Apr 20, 2020

Subject of the feature

MathJax’ SVG output is heavy, probably due to its font support, figure out a way to make it smaller.

Expected behaviour

Not be 500kb+ in browsers or in Node.

@wooorm wooorm added 🦋 type/enhancement This is great to have 🙉 open/needs-info This needs some more info labels Apr 20, 2020
@tani
Copy link
Contributor

tani commented Apr 20, 2020

I can add an option to use CHTML in MathJax, but that option require to add path to webfont.
As you said, almost part of 500kb+ are font. I agree that it is good to have a option for users.

@wooorm
Copy link
Member Author

wooorm commented Apr 20, 2020

So the external font option is only available for CHTML? 🤔

The docs seem to suggest that MathJax defaults to CHTML, and they prefer that. What is the reason for preferring SVG here?

wooorm pushed a commit that referenced this issue Apr 24, 2020
Closes GH-43.
Closes GH-42.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
@wooorm wooorm added 💪 phase/solved Post is done and removed 🙉 open/needs-info This needs some more info labels Apr 24, 2020
@wooorm wooorm added the 💪 phase/solved Post is done label Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 phase/solved Post is done 🦋 type/enhancement This is great to have
Development

Successfully merging a pull request may close this issue.

2 participants