Skip to content

Commit

Permalink
Merge pull request #2933 from udecode/fix/slateTextDiff
Browse files Browse the repository at this point in the history
fix slateTextDiff
  • Loading branch information
zbeyens committed Feb 7, 2024
2 parents aa4128e + 3587811 commit de40950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-papayas-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-suggestion": patch
---

fix slateTextDiff
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function transformDiffTexts(
function slateTextDiff(a: string, b: string): Op[] {
// Compute the diff between two strings
const diff = dmp.diff_main(a, b);
dmp.diff_cleanupSemantic(diff);

const operations: Op[] = [];

Expand Down

0 comments on commit de40950

Please sign in to comment.