Skip to content

On Enter in a block quote, should continue the quote on the first blank line, and close on the second #910

Open
@randallwc

Description

Proposal

When in a block quote like below

> blockquote
> blockquote2

this will output

blockquote
blockquote2

but I want to get to this point with few keystrokes because I often want to have newlines in my blockquotes

blockquote

blockquote2

but when in blockquote mode if my cursor is here

> blockquote
> |

and I press enter it removes the blockquote mode and becomes this

> blockquote

|

but it should go from here

> blockquote
> |

to here

> blockquote
> 
> |

to here

> blockquote

|

or any other variant where I can hit enter twice within blockquote mode without it canceling my blockquote, but I do feel like this movement of the cursor would be most natural.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Area: Block quotehttps://spec.commonmark.org/0.30/#block-quotesArea: InputRelated to editor input processing (key presses, key bindings).Issue: EnhancementImprovements in existing features.Res: FixedFix is checked in, but it might be a few weeks until a release.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions