CharlieMcVicker / mathjax-react

React Component Library for MathJax
33 stars 14 forks source link

Wrapping the expression. #39

Closed manal-t07 closed 1 year ago

manal-t07 commented 1 year ago

Hi, I am using the MathComponent to render the tex string, basically I want it to wrap the expression to the next line instead of adding the scroll. image

What I am doing: <p style={{display:"inline-block", whiteSpace:"nowrap", maxWidth:"100%", overflowX:"auto", textAlign:"initial"}}> <MathComponent tex={example1} display={true} /></p>