import type { PlainExtension } from '@prosekit/core' import { defineWrappingInputRule } from '../input-rule/index.ts' /** * Wraps the text block in a blockquote when `>` is typed at the start of a new * line followed by a space. */ export function defineBlockquoteInputRule(): PlainExtension { return defineWrappingInputRule({ regex: /^>\s/, type: 'blockquote', }) }