New composer inserts double line breaks when pressing return key

In the new composer, type something and press return.

Actual: The new composer inserts a double-line paragraph break.

Expected: When I press return once, it should insert a single-line break, converting it to a paragraph break when I use two lines.

I sense that maybe the Discourse developers actually like it this way, but it’s really bad. No rich-text editor I’ve ever used does it Discourse’s way.

At a minimum, there should be a way to turn this paragraph behavior off.

1 Like

I would have to agree with this, the behaviour of the new composer is strange and unintuitive when it comes to a simple thing like pressing return. Between this and a bunch of other immediate bugs that I’m trying to reproduce, I would have to say that this is a feature which doesn’t quite feel ready for prime-time yet. :frowning: If the new composer were the default at the moment for example, posting on my site would be completely broken, as many times I’ll post images that I have hosted at Flickr.

1 Like

I’m moving this to Feature since this is working as designed, though I understand this is not a design choice that you find desirable. We’re talking about this internally and will share more soon.

Please open new topics as you are able to reproduce bugs (and I would appreciate more information about what’s broken with the Flickr links); let’s keep this topic focused on the original poster’s comments.

1 Like

Very sorry, I will keep the discussion on-topic in the future!

I did post a bug regarding the issue with inline image links in the appropriate forum, hopefully that was the right place for it!

Sorry, in my last post I forgot to actually link to the bug that I had posted:

1 Like

Keep in mind
SHIFT ENTER
will work

I am not 100% convinced we should change our default, but agree there is a bit of lack of parity with the raw composer.

5 Likes

Do “normal people” know about that chord?

2 Likes

Even if you know, it will still be difficult on touch devices without an external keyboard.

1 Like

Understood.

But
should we encourage people to
type like this

Or
is it an outlier way of typing content, and generally we want to encourage tidy paragraphs?

Markdown original spec is so adamant this is a bad pattern it makes you insert a \ at the end of the line or double space to line break.

2 Likes

It’s less common but we’re not completely alone in this, notion.so and medium.com work this way as well — generally the idea is to encourage more structure.

2 Likes

I’m also finding it very difficult to switch from previously pressing enter twice to do a new paragraph to now having to only press it once.

There doesn’t seem to be a way to do a single line break on mobile.

1 Like

FWIW, Shift+Enter using an actual keyboard also doesn’t work with mobile :open_mouth:

2 Likes

I guess we could add an “insert line break” item on mobile behind the plus, it would provide an affordance

FWIW, while it doesn’t bother me personally, this behaviour has also caused confusion among quite a lot of people in my community who were not familiar with the Shift + Enter shortcut (or didn’t expect to be able to use it).

1 Like