mehdisadeghi / react-mathjax-preview

The MathJax React component you were looking for.
https://mehdisadeghi.github.io/react-mathjax-preview/
MIT License
49 stars 30 forks source link

prevent flickering #50

Closed svgpubs closed 4 years ago

svgpubs commented 4 years ago

by allowing the user to set a delay for rendering, the math processing does not flicker the screen.

previous

<MJ2 math={equation.latex} />

new

<MJ2 math={equation.latex} msDelayDisplay={300} />
mehdisadeghi commented 4 years ago

Thanks for the PR. It looks good to me!

On a side note, your editor/IDE has completely reformatted the code which makes it hard for any maintainer to see your real contribution. Less changes are more likely to be considered in gerneral, because it is much easier to immediately see them.

mehdisadeghi commented 4 years ago

Closes #48

svgpubs commented 4 years ago

I see what you mean about the reformatting. This was my first pull request, thanks for the feedback and explanation.