asciimath / asciimathml

A new home for asciimathml
http://asciimath.org/
MIT License
958 stars 184 forks source link

mathfontsize and mathfontfamily recognition #80

Closed milet72 closed 6 years ago

milet72 commented 6 years ago

In my case mathfontsize and mathfontfamily were not recognized. Had to add extra node.setAttribute()

drlippman commented 6 years ago

This seems like a reasonable fix. It looks like Peter added the mathfontsize config option in the 2.x version, but didn't implement it for some reason.

Keep in mind this will only work with direct browser rendering using ASCIIMathML.js. The MathJax input jax ignores these settings, since things like font size can be set in the MathJax config.

In direct browser rendering, you should also be able to set font stuff via CSS. That'd be more flexible than using mathvariant which only accepts a limited set of family names.