Automatic extra bullet after every list line

AI-generated summary

Users reported a bug where Discourse automatically adds an extra asterisk after each bullet list item when using the Enter key—especially during Japanese text input via IME dropdowns, as seen on the WaniKani forums. Jagster first noted the issue affects all bullet types, not just asterisks. kutsushokunin detailed the problem occurring on WaniKani forums but not Meta, linking it to IME input behavior and confirming it only triggers with Enter, not mouse clicks or arrow keys. Moin identified a recent fix in Discourse’s codebase (commit 8c038d9) and noted WaniKani’s forums were outdated. martin confirmed the forums were updated, resolving the issue. kutsushokunin verified the fix worked on WaniKani. The bug was platform- and input-method-specific, affecting Firefox and Safari on both Windows and macOS, while Chrome behaved inconsistently. The fix was confirmed effective after updating the WaniKani forums.

This is a list:

  • first item
  • second item*
  • third item*
  • etc*

I would guess that extra asterisk comes from quite recent fix of a bit more complex lists. But it should not act like that.

4 Likes

Thanks @Jagster I can repro this. Yea we’re working on making bullet lists smarter.

3 Likes

I changed the tittle a bit because it happends with every bullets, not only with asterix.

4 Likes

I’ve experienced a similar issue over on the WaniKani forums, which run on Discourse. However, I can’t reproduce the issue here on the Meta forum.

Since the WK forums are all about learning Japanese, it’s not uncommon to make bulleted lists of Japanese words. This involves writing out a word phonetically and then selecting a word from a drop-down list, often using the Enter key.
For example, to get the character 火 (pronounced hi), I might type:

h i SPACE ENTER

Unfortunately, when I do this in a bulleted list, whenever I hit ENTER, Discourse adds an additional asterisk and space after the word. This becomes particularly frustrating when trying to write out a longer phrase, which often involves hitting ENTER more than once.

Desired output:

* 気を配る

Actual output:

* 気* を* 配る*

As in your case, this never happens for the first item in a list. Even if a list contains multiple items, nothing happens when updating the first item.

  • 気をつけて
  • 気* を* つけて*
  • 火*

The issue does not occur when selecting from the dropdown menu using some other method, such as by clicking or hitting the right arrow key; only when hitting ENTER.

Tested on:

Browser / OS Windows 10 macOS
Firefox :angry_face_with_horns: :angry_face_with_horns:
Chrome :slight_smile: :angry_face_with_horns:
Safari (not tested) :angry_face_with_horns:
Edge :slight_smile: (not tested)

:angry_face_with_horns: = bugged
:slight_smile: = no bug

I’m not sure why this happens on the WK forum but not on this one. Has it been fixed in a recent release, perhaps?

Welcome to Meta :wave:

I think this is the most recent fix
https://github.com/discourse/discourse/commit/8c038d94988620f711a315bd9ac58e1302457299

The WaniKani forums were last updated about two weeks ago, so they need another update to get the fix.

3 Likes

Wonderful; thank you very much for the information! I’ll check if the problem persists the next time they update the forums.

6 Likes

Thanks for posting this Moin, it slipped my mind. It should fix the issues everyone has been having here.

I just updated the forum then :slight_smile:

5 Likes

Yeah, we are back in business.

Thanks.

3 Likes

Awesome; thank you! It now works great over on the WaniKani forums.

1 Like

This topic was automatically closed after 3 days. New replies are no longer allowed.