Skip to content

Commit d08531b

Browse files
authored
feat: add Unicode quotation mark input rule for quote blocks (#2673)
1 parent a5ff04d commit d08531b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/core/src/blocks/Quote/block.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ export const createQuoteBlockSpec = createBlockSpec(
8484
};
8585
},
8686
},
87+
{
88+
find: new RegExp(`^\\p{Quotation_Mark}\\s$`, "u"),
89+
replace() {
90+
return {
91+
type: "quote",
92+
props: {},
93+
};
94+
},
95+
},
8796
],
8897
}),
8998
],

0 commit comments

Comments
 (0)