From 4eebe10f2ea76362d1d73fc59a8701e5661aed0a Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 18 Mar 2024 11:18:41 +0500 Subject: [PATCH] editor: fix => turning into a callout --- packages/editor/src/extensions/callout/callout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/extensions/callout/callout.ts b/packages/editor/src/extensions/callout/callout.ts index 536377274..64841a0a8 100644 --- a/packages/editor/src/extensions/callout/callout.ts +++ b/packages/editor/src/extensions/callout/callout.ts @@ -75,7 +75,7 @@ export type CalloutAttributes = { type: CalloutType; }; -const CALLOUT_REGEX = />(.+?)(?:\n| (.+)\n$)/g; +const CALLOUT_REGEX = /^>(.+?)(?:\n| (.+)\n$)/g; export const Callout = Node.create({ name: "callout", content: "heading block*",