From 3e058897369fd1f5ac03e10aa4750cd0f76a9f24 Mon Sep 17 00:00:00 2001 From: olexh Date: Sat, 21 Dec 2024 19:29:48 +0200 Subject: [PATCH] fix: disable autoformat plugin --- package.json | 4 ++-- src/components/markdown/editor/plugins.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0e92f0ca..a8a15a49 100644 --- a/package.json +++ b/package.json @@ -100,11 +100,11 @@ "remark-mentions": "^1.1.0", "remark-parse": "^11.0.0", "sharp": "^0.33.5", - "slate": "^0.110.2", + "slate": "^0.112.0", "slate-dom": "^0.111.0", "slate-history": "^0.110.3", "slate-hyperscript": "^0.100.0", - "slate-react": "^0.111.0", + "slate-react": "^0.112.0", "tailwind-gradient-mask-image": "^1.2.0", "tailwind-merge": "^2.5.4", "tailwindcss": "3.4.14", diff --git a/src/components/markdown/editor/plugins.tsx b/src/components/markdown/editor/plugins.tsx index 330981c0..01dd1abc 100644 --- a/src/components/markdown/editor/plugins.tsx +++ b/src/components/markdown/editor/plugins.tsx @@ -16,7 +16,7 @@ import { ResetNodePlugin } from '@udecode/plate-reset-node/react'; import { DeletePlugin } from '@udecode/plate-select'; import { TrailingBlockPlugin } from '@udecode/plate-trailing-block'; -import { autoformatListPlugin } from './plugins/autoformat-list-plugin'; +// import { autoformatListPlugin } from './plugins/autoformat-list-plugin'; import { DiffPlugin } from './plugins/diff-plugin'; import { linkPlugin } from './plugins/link-plugin'; import { MarkdownPlugin } from './plugins/markdown-plugin/markdown-plugin'; @@ -35,7 +35,7 @@ export const editorPlugins = [ ListPlugin, NumberedListPlugin, BulletedListPlugin, - autoformatListPlugin, + // autoformatListPlugin, SpoilerPlugin, TrailingBlockPlugin.configure({ options: { type: ParagraphPlugin.key } }), MarkdownPlugin,