CharlieMcVicker / mathjax-react

React Component Library for MathJax
33 stars 14 forks source link

settings not working #26

Open Brees-T opened 2 years ago

Brees-T commented 2 years ago

How are settings must be sent? I've already read MathJax documentation and tried to add setting this way

<MathComponent
                settings={{ "HTML-CSS": {preferredFont: "STIX"}}}
                tex={String.raw`Random\;formula`}
              />

And this way

<MathComponent
                settings={{ menuSettings: "" }}
                tex={String.raw`random\;formula`}
              />

But it doesn't seem to be working, all I get from console is

Options.ts:87 MathJax: Invalid option "0" (no default value).

CharlieMcVicker commented 2 years ago

Can you let me know if this issue continues with version 2.0.0 of the package?

ajay311517104001 commented 1 year ago

i want to convert the latex to chtml insted of svg. how to pass the setting for this format ? please lemme know, Thanks in Advance :)