Quill: Is there a way to support multiline blockquotes?

Created on 16 Oct 2016  路  4Comments  路  Source: quilljs/quill

Currently on a blockquote line if you hit enter, quill starts a new blockquote (rather than what I expected -- just adding a new line into the current blockquote). This feels like a bug imo -- the blockquote should end on 2 enters (i.e. a blank line between them).

Although if you consider this expected behavior is there a way to create a new blockquote blot that would behave this way? Or any other way?

Expected behavior:
Support for multiline blockquote

Actual behavior:
Multiple blockquote blocks

Platforms: Any
Version: 1.0.6

Most helpful comment

Did someone achieve multiline blockquote? It is not so easy as @jhchen said. It is always easy to say: "it is not a bug, it is a feature"

All 4 comments

This is behaving as designed. You can create your own blockquote format that behaves as you'd like and there's a large body of documentation on the topic of custom formats. A starting point is http://quilljs.com/guides/cloning-medium-with-parchment/ and a good reference is https://github.com/quilljs/parchment/. You may also find the code block's behavior / code informative as it does something similar.

Did someone achieve multiline blockquote? It is not so easy as @jhchen said. It is always easy to say: "it is not a bug, it is a feature"

Hello everyone, I find a simple way to do this. with pure CSS.

This is the code

I figured it out!

  1. Open Medium Editor
  2. Select "Markdown"
  3. Paste your multiline blockquote into the embedded Markdown editor
  4. Select the pasted multiline quote
  5. Click the quote mark icon
  6. Profit!
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Softvision-MariusComan picture Softvision-MariusComan  路  3Comments

benbro picture benbro  路  3Comments

lustoykov picture lustoykov  路  3Comments

rsdrsd picture rsdrsd  路  3Comments

CHR15- picture CHR15-  路  3Comments