From 8876bdca708d375a814411bdac0b81b9b943aab7 Mon Sep 17 00:00:00 2001 From: patrickhertling Date: Wed, 22 Jan 2025 18:52:50 +0200 Subject: [PATCH] fix removes `triggerAtBlockStart` from `autoformatBlocks` --- .../default/components/editor/plugins/autoformat-list-plugin.ts | 1 - .../default/components/editor/plugins/autoformat-plugin.ts | 1 - .../src/components/editor/plugins/autoformat-plugin.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/apps/www/src/registry/default/components/editor/plugins/autoformat-list-plugin.ts b/apps/www/src/registry/default/components/editor/plugins/autoformat-list-plugin.ts index 48763abe3f..c5c6a0bd0f 100644 --- a/apps/www/src/registry/default/components/editor/plugins/autoformat-list-plugin.ts +++ b/apps/www/src/registry/default/components/editor/plugins/autoformat-list-plugin.ts @@ -199,7 +199,6 @@ export const autoformatBlocks: AutoformatRule[] = [ match: '```', mode: 'block', preFormat, - triggerAtBlockStart: false, type: CodeBlockPlugin.key, }, { diff --git a/apps/www/src/registry/default/components/editor/plugins/autoformat-plugin.ts b/apps/www/src/registry/default/components/editor/plugins/autoformat-plugin.ts index f62a0c8c79..3ba0f56812 100644 --- a/apps/www/src/registry/default/components/editor/plugins/autoformat-plugin.ts +++ b/apps/www/src/registry/default/components/editor/plugins/autoformat-plugin.ts @@ -175,7 +175,6 @@ export const autoformatBlocks: AutoformatRule[] = [ }, match: '```', mode: 'block', - triggerAtBlockStart: false, type: CodeBlockPlugin.key, }, { diff --git a/templates/plate-playground-template/src/components/editor/plugins/autoformat-plugin.ts b/templates/plate-playground-template/src/components/editor/plugins/autoformat-plugin.ts index f62a0c8c79..3ba0f56812 100644 --- a/templates/plate-playground-template/src/components/editor/plugins/autoformat-plugin.ts +++ b/templates/plate-playground-template/src/components/editor/plugins/autoformat-plugin.ts @@ -175,7 +175,6 @@ export const autoformatBlocks: AutoformatRule[] = [ }, match: '```', mode: 'block', - triggerAtBlockStart: false, type: CodeBlockPlugin.key, }, {