Markdown-replacement whitespace behavior

What’s The Bug?

After replacing _italic_ or **bold** text the editor inserts a trailing whitespace, which IMO should not be there.

  • I know of no other implementation which does this
  • it is annoying, since you have to delete it for placing punctuation
  • i did not type it, so I don’t expect it – also my muscle memory does not

not critical, super annoying (at least for me), and I simply cannot get used to it.

How To Reproduce It

  1. Type “hello _world_
  2. See "hello world " (including the whitespace) appear

Image or Video

The Expected Behavior

To see “hello world” with_out_ whitespace.

Device

MacBook Pro 2024

OS

Sequoia 15.3.1 (24D70)

Anytype Version

0.45.3

Network Mode

AnySync

Technical Information

OS version: darwin arm64 15.3.1
App version: 0.45.3
Build number: build on 2025-02-17 15:22:27 +0000 UTC at #f1ceda0a1457dbf982d8b3fd8479ccdcb95df6d3 (dirty)
Library version: v0.39.11
Anytype Identity: ABRAoHEP1impMW3DyMRAbELnYjV5M27h5JRecNB3KPGi6vLr
Analytics ID: A8MkhLywF2qZjmjdF7NF8GwFa2shiGNZAynUfxNWv6uH5J78
Device ID: 12D3KooWMWgDBF3rWa4jd66UHBm67tQoqRNMPvokbEuZKGeHX5wr

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

This bug really fractures my concentration. As the OP noted, it takes 6 keystrokes to italicize something with a trailing non-space character.: _, [your italicized thing], _, [your trailing non-space character], ←, ⌫, →. That is a concentration-scrambler for me - It’s such a game of chess that I lose track of what it is I’m taking notes on.

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