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

Allow all MathJax output formats #1055

Merged
merged 3 commits into from Feb 23, 2016
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Feb 6, 2016

rather than white-listing HTML-CSS and scrubbing all others. This means the various other renderers (perhaps most importantly, MML) are available, not just HTML-CSS.

Fonts other than STIX-Web are still scrubbed, since much of the size is due to the many font choices.

This increases the size of a notebook install by ~3.5k/19MB or 18%.

A smaller change would be to only add MML, which would have a negligible affect on install size.

closes #1037

which is the largest

rather than white-listing HTML-CSS.
This means the various other renderers (perhaps most importantly, MML) are available, not just HTML-CSS

This increases the size of a notebook install by ~800k/19MB or 5%.

Alternately, we could *only* add MML, which would have a negligible affect on install size.
@minrk minrk changed the title only scrub SVG output only scrub SVG MathJax output Feb 6, 2016
trust that it will be re-run after npm/bower
@Carreau
Copy link
Member

Carreau commented Feb 6, 2016

5.0 of 4.2 ?

+1

@Carreau Carreau added this to the 4.2 milestone Feb 7, 2016
@minrk
Copy link
Member Author

minrk commented Feb 7, 2016

I'm not sure. I could go either way.

@minrk
Copy link
Member Author

minrk commented Feb 18, 2016

@jasongrout you brought up some follow up that suggested maybe we should include SVG anyhow. Did you want to check in here?

@minrk
Copy link
Member Author

minrk commented Feb 18, 2016

For reference: Adding SVG with a single font (like we do with HTML-CSS) would increase install size by 2.5 MB, or an additional ~13%.

@rgbkrk
Copy link
Member

rgbkrk commented Feb 19, 2016

Is install size a real worry here? This doesn't seem so bad, I'm ready to merge this.

@takluyver
Copy link
Member

I don't think an extra 2.5MB is a problem. IIRC, the full mathjax bundle was about 10x the size of our entire package, which seemed a bit much, but I think it's fine to selectively add bits back in if there's a use for them.

we now ship all mathjax output formats

We still strip down to a single font (STIX-Web)
@minrk minrk changed the title only scrub SVG MathJax output Allow all MathJax output formats Feb 22, 2016
@minrk
Copy link
Member Author

minrk commented Feb 22, 2016

Okay, this now includes all output formats, including SVG. SVG is scrubbed down to a single font, just like we do with HTML-CSS.

Carreau added a commit that referenced this pull request Feb 23, 2016
Allow all MathJax output formats
@Carreau Carreau merged commit cc8b3be into jupyter:master Feb 23, 2016
minrk added a commit to minrk/notebook that referenced this pull request Feb 24, 2016
rather than white-listing HTML-CSS and scrubbing all others. This means the various other renderers (perhaps most importantly, MML) are available, not just HTML-CSS.

Fonts other than STIX-Web are still scrubbed, since much of the size is due to the many font choices.

This increases the size of a notebook install by ~3.5k/19MB or 18%.
...
@minrk minrk deleted the mathjax-mathml branch March 21, 2016 12:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple MathJax + Incomplete MathJax
5 participants