diff --git a/packages/lexical-markdown/src/MarkdownShortcuts.ts b/packages/lexical-markdown/src/MarkdownShortcuts.ts index 41f69b3156e..f89af2129e3 100644 --- a/packages/lexical-markdown/src/MarkdownShortcuts.ts +++ b/packages/lexical-markdown/src/MarkdownShortcuts.ts @@ -385,8 +385,8 @@ export function registerMarkdownShortcuts( return editor.registerUpdateListener( ({tags, dirtyLeaves, editorState, prevEditorState}) => { - // Ignore updates from undo/redo (as changes already calculated) - if (tags.has('historic')) { + // Ignore updates from collaboration and undo/redo (as changes already calculated) + if (tags.has('collaboration') || tags.has('historic')) { return; }