react-mathjax icon indicating copy to clipboard operation
react-mathjax copied to clipboard

Duplicate MathJax nodes rendered

Open nikolas opened this issue 6 years ago • 4 comments

Hi, I have a react program set up with a MathJax node hooked up to some sliders, like this:

2018-07-16-132129_906x326_scrot

When I move these sliders, multiple MathJax nodes appear:

2018-07-16-131959_995x381_scrot

I will also note that using this react-mathjax library solves this problem: https://github.com/wko27/react-mathjax (registered as react-mathjax2 in npm).

nikolas avatar Jul 16 '18 17:07 nikolas

I'm having the same issue too. If this component is rendering based on component state, after a few state updates it starts to show the resulting formula twice.

techrah avatar Jul 31 '18 22:07 techrah

Same problem here

Deniscapp avatar Sep 26 '18 12:09 Deniscapp

I've got the same problem. Where you guys able to fix it?

FBosler avatar May 18 '20 15:05 FBosler

I was having the same issue: image

It seems the MathJax.Node renders the formula in two spans (one with the class MathJax_Preview and the other with the classes mjx-chtml MathJax_CHTML): image

Hiding the MathJax_Preview span with the following CSS solved my issue:

span.MathJax_Preview {
  display: none;
}

connorff avatar Dec 18 '21 06:12 connorff