Skip to content

Commit 6bec51f

Browse files
lytionetrepum
andauthored
Refactor key comparison
Co-authored-by: Bob Ippolito <[email protected]>
1 parent b8a5dcd commit 6bec51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lexical-markdown/src/MarkdownTransformers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ export const INDENT: TextMatchTransformer = {
633633
if (
634634
!$isParagraphNode(parentNode) ||
635635
!$isTextNode(node) ||
636-
parentNode.getFirstChild() !== node
636+
!node.is(parentNode.getFirstChild())
637637
) {
638638
return null;
639639
}

0 commit comments

Comments
 (0)