editor: fix => turning into a callout

This commit is contained in:
Abdullah Atta
2024-03-18 11:18:41 +05:00
parent 6c0d6127ba
commit 4eebe10f2e

View File

@@ -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*",