Skip to content

Commit

Permalink
fix: fix single line normalization pass
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang committed Aug 13, 2024
1 parent 342ff1e commit a080a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-pigs-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-break': minor
---

fix single line plugin normalization
2 changes: 2 additions & 0 deletions packages/break/src/single-line/withSingleLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const withSingleLine = <
match: (node, path) => path.length === 1 && path[0] > 0,
mode: 'highest',
});

return;
}

normalizeNode(entry);
Expand Down

0 comments on commit a080a32

Please sign in to comment.