Skip to content

How to do nested blockquotes like github? #924

Answered by zbeyens
sepsol asked this question in Q&A
Discussion options

You must be logged in to vote

Try out this rule (v2)

{
  mode: 'block',
  match: '> ',
  preFormat,
  format: (editor) =>
    wrapNodes(editor, { type: ELEMENT_BLOCKQUOTE, children: [] }),
  allowSameTypeAbove: true,
}

Note however this adds some complexity you'll need to handle, e.g. unwrapping nodes, normalizing

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sepsol
Comment options

@zbeyens
Comment options

@sepsol
Comment options

Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment