Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix => turning into a callout

Abdullah Attadac2a228245b
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*",