diff --git a/src/components/Markdown/Editor.tsx b/src/components/Markdown/Editor.tsx
index 45bea77..f2baa8d 100644
--- a/src/components/Markdown/Editor.tsx
+++ b/src/components/Markdown/Editor.tsx
@@ -4,6 +4,8 @@ import {
codeBlockPlugin,
CodeToggle,
CreateLink,
+ diffSourcePlugin,
+ DiffSourceToggleWrapper,
directivesPlugin,
headingsPlugin,
imagePlugin,
@@ -68,34 +70,42 @@ export const Editor = React.memo(
() => [
toolbarPlugin({
toolbarContents: () => (
- <>
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
- >
+
+
+ >
+ }
+ />
)
}),
headingsPlugin(),
+ diffSourcePlugin({
+ viewMode: 'rich-text',
+ diffMarkdown: markdown
+ }),
quotePlugin(),
imagePlugin({
ImageDialog: ImageDialog
@@ -118,6 +128,7 @@ export const Editor = React.memo(
codeBlockEditorDescriptors: [PlainTextCodeEditorDescriptor]
})
],
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[]
)