Skip to content

Add Shift+Enter to markdown editor

Brett Walker requested to merge 21916-add-shift-enter-to-markdown-editor into master

What does this MR do and why?

When pressing Shift+Enter in the markdown editor, add a \ and newline. This is a hard line break in markdown. It is also the same behavior in the content editor, so this brings parity.

2023-02-21_13.18.56

How to set up and validate locally

In a comment or description box, add some text. Then, pressing Shift+Enter at various places should add a \ and newline at the cursor position. Click Preview to see that markdown transforms it into a hard line break.

See the video above as a reference.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #21916 (closed)

Edited by Brett Walker

Merge request reports