remarkjs/remark-math

rehype-mathjax: mathjax is 500kb+ minzipped

wooorm opened this issue · 2 comments

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.

tani commented

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.

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?