Deleting code block creates code block 'javascript'

WHAT IS THE BUG

Can’t correctly delete a code block by hitting backspace one time because code block persists.

HOW TO REPRODUCE IT

  1. Create code block in middle of page
  2. Try to delete it by hitting backspace on keyboard
  3. See that code block does not get delete but default code block is “recreated”.
  4. I was able to provide a video capture (or screen-shot) of the bug, here it is:

THE EXPECTED BEHAVIOR

Code block should be correctly deleted.

ADDITIONAL CONTEXT

SYSTEM INFORMATION

  • Device:
    Macbook Pro M1 2021
  • OS:
    Ventura 13.5
  • Anytype Version:
    0.33.12-beta

This report has been added to our issue tracker and received by the Development Team.

1 Like

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

1 Like

@Angelo @Razor Not fixed for me in version: 0.34.0

@jannis could you check again on the latest version?

Yup, still there, version: 0.34.3

1 Like

@Angelo can you do the magic? :magic_wand:

@Angelo bump :pray:

Still happens in the latest release (0.35.1)

Additional/related bug:

  • Creating a code block with /code will use the last-used language as it should
  • Creating a code block with ``` will use the default language of Javascript
1 Like