pkra / mathjax-node-page

mathjax-node for pages
Apache License 2.0
42 stars 20 forks source link

CHTML output strangeness #74

Open pron opened 5 years ago

pron commented 5 years ago

Hi.

This is how some text + MathJax is rendered online (client-side) with CHTML output:

online chtml

This is what it looks like when rendered offline (server side) with mathjax-node-page (using FabianHenneke/jekyll-mathjax-csp) as SVG:

offline svg

And this is what it looks like when rendered offline as CHTML:

offline chtml

As you can see, the math font is much smaller than either the online CHTML or the offline SVG, and the bbox (\bbox[lightgrey,2pt]) is not colored.

pkra commented 5 years ago

Looks like an upstream issue https://github.com/mathjax/MathJax-node/issues/433

pron commented 5 years ago

Thanks. What about the font size?

pkra commented 5 years ago

What about the font size?

That will depend on the surrounding CSS (and possibly the browser if you're not careful). Without a live sample, there's not much more to say I'm afraid.