SamyPesse / react-mathjax

React component to display math formulas
Apache License 2.0
95 stars 35 forks source link

Math Formular occasonally not rendering #29

Open iroy2000 opened 4 years ago

iroy2000 commented 4 years ago

I found out that the Math formula occasionally are not rendering.

The following is what I did

<MathJax.Provider>
    <MathSolutionList />
</MathJax.Provider>

MathSolutionList contains N number of MathSolution that contain latex.

So it looks like something like that essentially the same concept ( consider there could be hundreds of them

<MathJax.Provider>
  <h2>Blah ...</h2>
  <MathJax.Node formula={content.latex[0]} />   // consider the latext are valid
  <p>blah ...</p>
  <MathJax.Node formula={content.latex[1]} />    
  ... 
<MathJax.Provider>

The problem I'm facing now, occasionally it only renders a ;, and the elements show something like this

Screen Shot 2019-11-25 at 9 25 47 AM

Any advice will be appreciated.

iroy2000 commented 4 years ago

My problem is solved by switching to https://github.com/wko27/react-mathjax