Skip to main content
The Blockquote extension allows you to create blockquote nodes for quoted content. It wraps block-level content and is commonly used for citations or emphasized passages.

Installation

Usage

The Blockquote extension is included in the StarterKit by default:
To use it standalone:

Configuration

HTMLAttributes

Custom HTML attributes to add to the blockquote element.
Record<string, any>
default:"{}"
Custom HTML attributes that should be added to the rendered HTML tag.

Commands

setBlockquote

Wraps the current selection in a blockquote.

toggleBlockquote

Toggles a blockquote. If the current node is already wrapped in a blockquote, it unwraps it.

unsetBlockquote

Removes the blockquote wrapping from the current selection.

Keyboard Shortcuts

  • Mod-Shift-B: Toggle blockquote

Input Rules

The Blockquote extension supports Markdown-style input rules:
  • Type > followed by a space to create a blockquote

Source Code

View the source code on GitHub: packages/extension-blockquote/src/blockquote.tsx