diff --git a/src/extensions/yfm/Math/view-and-edit.ts b/src/extensions/yfm/Math/view-and-edit.ts index a8868ce8..4ba4345f 100644 --- a/src/extensions/yfm/Math/view-and-edit.ts +++ b/src/extensions/yfm/Math/view-and-edit.ts @@ -88,7 +88,7 @@ export abstract class MathNodeView implements NodeView { ignoreMutation(mutation: MutationRecord): boolean { // @ts-expect-error - if (mutation.type === 'selection') return true; + if (mutation.type === 'selection' || mutation.type === 'attributes') return true; return ( mutation.type === 'childList' &&