Skip to content

Commit b6dc43e

Browse files
committed
fix: remove last as RuleKey cast by using rejectEntries helper
1 parent 2565469 commit b6dc43e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/editor/core/insertion-rule-matrix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const REJECT_RULES: ReadonlyMap<RuleKey, InsertionRuleRejectReason> = new Map<Ru
6363
),
6464

6565
// quote_before: Callout blocked
66-
[`${BlockType.Callout}|quote_before` as RuleKey, 'quote_boundary'],
66+
...rejectEntries([BlockType.Callout], 'quote_before', 'quote_boundary'),
6767

6868
// quote_after: only Blockquote allowed
6969
...rejectEntries(

0 commit comments

Comments
 (0)