Skip to content

Commit

Permalink
Revert "Fix test"
Browse files Browse the repository at this point in the history
This reverts commit 2cc2d08.
  • Loading branch information
bastianjoel committed May 22, 2024
1 parent 2cc2d08 commit e9aa810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1342,11 +1342,12 @@ export class MotionDiffService {
const ln = htmlNewEl.body.querySelector(`.os-line-number`);
htmlNewEl.body.children[0].childNodes[0].before(ln);
htmlOldEl.body.children[0].querySelector(`.os-line-number`).remove();
htmlNew = htmlNewEl.body.innerHTML;
}
}

diffDomTiptapMigration(htmlOldEl, htmlNewEl);

htmlNew = htmlNewEl.body.innerHTML;
htmlOld = htmlOldEl.body.innerHTML;

// os-split-after should not be considered for detecting changes in paragraphs, so we strip it here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ function migrateListItems(doc: Document): void {
export function diffDomTiptapMigration(docOld: Document, docNew: Document): void {
if (docNew.querySelector(`li > p`)) {
migrateListItems(docOld);
migrateListItems(docNew);
}
}

0 comments on commit e9aa810

Please sign in to comment.