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

Options.hs: defaultMathJaxURL: use tex-chtml-full instead of tex-mml-… #6600

Merged
merged 1 commit into from
Oct 10, 2020
Merged

Options.hs: defaultMathJaxURL: use tex-chtml-full instead of tex-mml-… #6600

merged 1 commit into from
Oct 10, 2020

Conversation

ickc
Copy link
Contributor

@ickc ickc commented Aug 7, 2020

…chtml

closes #6599

c.f. https://docs.mathjax.org/en/latest/web/components/combined.html

Note that while this use the full variant of the js, this drops the mml support. AFAIK, pandoc don't depends on MathJax to process MML, right?

Edit: by using the full it improves latency at the expense of size (but is compensated by dropping MML support from MathJax.)

@jgm
Copy link
Owner

jgm commented Aug 9, 2020

Definitely worth considering, but I'm not positive it has a significant advantage. I tried with --self-contained, and although it works I got very ugly math with the wrong fonts.

@ickc
Copy link
Contributor Author

ickc commented Aug 14, 2020

We've discussed this in #2908 already. Full is better in terms of latency with a small penalty of size, which is cached for reused.

And the side effect of it is that you don't have dynamic loaded js so it will be self-contained.

The fonts are ugly because the web fonts is neither available in the local file nor in local computer. Pandoc can be smarter about this. But I'm not sure if it's worth it.

@jgm
Copy link
Owner

jgm commented Aug 15, 2020

Tests seem to be failing -- some golden test output needs to be updated.
make TESTARGS=--accept and check the changes.

@jgm
Copy link
Owner

jgm commented Oct 10, 2020

I'll fix the tests after merging.

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

Successfully merging this pull request may close these issues.

Bug: inlining mathjax 3.0 in html fails to load properly [2.10.1]
2 participants