From ea7b1afca4f55c5ca74070b7a56545839a7ac819 Mon Sep 17 00:00:00 2001 From: d3m1d0v Date: Tue, 20 Feb 2024 18:52:28 +0300 Subject: [PATCH] fix(Math): allow to modify dom-attributes of math nodes --- src/extensions/yfm/Math/view-and-edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' &&