diff --git a/src/components/math-block.jsx b/src/components/math-block.jsx index 47994c41..7b13f2e0 100644 --- a/src/components/math-block.jsx +++ b/src/components/math-block.jsx @@ -123,7 +123,7 @@ const MathBlock = ({ content, contentRef, onRevert }) => { }, }); - const hasMath = contentRef.current.querySelector('math.tml-display'); + const hasMath = contentRef.current.querySelector('math'); const htmlChanged = contentRef.current.innerHTML !== originalContentRefHTML; if (hasMath && htmlChanged) {