MathJax-node icon indicating copy to clipboard operation
MathJax-node copied to clipboard

loading SVG file through img element

Open gbala2412 opened this issue 7 years ago • 2 comments

I have to load the SVG file created by Mathjax-Node through img element. In such a case is there any option to increase/decrease the font-size?

gbala2412 avatar Jan 02 '19 06:01 gbala2412

You would need to extract and copy the top-level style attribute over to the img tag to get a decent rendering.

Beware that using an img tag has many drawbacks (e.g., no CSS inheritance, worse rendering of fallback fonts).

pkra avatar Jan 02 '19 10:01 pkra

Thanks for the reply, I will try your suggestion.

gbala2412 avatar Jan 02 '19 12:01 gbala2412