From 1c6e3863935dd2177795d4120d4aaead7dbd9ccc Mon Sep 17 00:00:00 2001 From: yousefed Date: Thu, 23 Apr 2026 12:08:36 +0200 Subject: [PATCH] feat: add Unicode quotation mark input rule for quote blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an input rule that triggers quote block conversion when typing a Unicode quotation mark followed by a space, in addition to the existing `> ` shortcut. This covers characters like ", ", «, », etc. Co-Authored-By: Claude Opus 4.6 --- packages/core/src/blocks/Quote/block.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/src/blocks/Quote/block.ts b/packages/core/src/blocks/Quote/block.ts index bb14afbd77..b6b6a7710f 100644 --- a/packages/core/src/blocks/Quote/block.ts +++ b/packages/core/src/blocks/Quote/block.ts @@ -84,6 +84,15 @@ export const createQuoteBlockSpec = createBlockSpec( }; }, }, + { + find: new RegExp(`^\\p{Quotation_Mark}\\s$`, "u"), + replace() { + return { + type: "quote", + props: {}, + }; + }, + }, ], }), ],