diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 3b7b22f..fc0cce1 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -12,6 +12,7 @@ import { import { eq, monoid, + number, option, ord, readonlyArray, @@ -55,6 +56,10 @@ const eqContentBlock = monoid.concatAll(eq.getMonoid())([ string.Eq, eq.contramap((b) => b.getText()) ), + pipe( + number.Eq, + eq.contramap((b) => b.getDepth()) + ), ]); const getBlocks = (editorState: EditorState) => pipe(