davidshen84 / ngx-mathjax

MathJax + Angular
MIT License
14 stars 10 forks source link

How to add config data #15

Open JayAndBee opened 4 years ago

JayAndBee commented 4 years ago

Hi,

great software, works really nice in my webapp. Just one thing: do you know how I can add some config options to the mathjax call? I would like to set CSS output options of the css class "MathJax_Display:" to "margin: 0em".

Best.

davidshen84 commented 4 years ago

I don't think I have the MathJax configuration interface exposed. Can you please point me to the MathJax document for that configuration you need?

JayAndBee commented 4 years ago

For my specific problem I have already found a workaround. However, to generalise, I think It'd be helpful if your config call just accepted a mathjax configuration object, as described in: http://docs.mathjax.org/en/latest/options/index.html

That way all configuration options could be forwarded easily. The CSS class I would like to include is just a part of this object: https://docs.mathjax.org/en/v2.7-latest/options/output-processors/HTML-CSS.html

azamanaza commented 3 years ago

@davidshen84 I created a separate issue here https://github.com/davidshen84/ngx-mathjax/issues/19