Backtick formatting with dead-key layouts includes leading space

WHAT IS THE BUG

Using a deadkey keyboard (such as the International US keyboard), when using backticks to apply the code style to a string, the previous whitespace character is included (observed on Mac).

HOW TO REPRODUCE IT

  1. Set your keyboard layout to a dead-key keyboard (for example, International US)

  2. Go to any page

  3. Type “Hello” + `Space` + `Backtick` + `Space` + “World” + `Backtick` + `Space`

  4. ᅟI was able to provide a video capture (or screen-shot) of the bug, here it is:

THE EXPECTED BEHAVIOR

  • Observed: Hello` World` (the whitespace before “world” is formatted as code)
  • Expected: Hello `World` (the whitespace before “world” is formatted as text)

ADDITIONAL CONTEXT

This is a regression due to a recent version. I have another device still on version 0.53.1 where the bug is not reproduced.

TECHNICAL INFORMATION
Desktop:
Device: Mac Mini M2
OS version: darwin arm64 26.2.0
App version: 0.54.2
Build number: build on 2026-02-16 15:18:28 +0000 UTC at #b2bd40d7e4429cd9969a75a064db1f17407adb9a
Library version: v0.48.1
Anytype Identity: A5uwFWXXSLMvvyJeWqR1H7CHvUFGa6pejTvTXsYDHrQaQuLu
Analytics ID: 50d2f17f-644f-4856-928b-ac0f4644e02d
Device ID: 12D3KooWK9QG746iSD1F6yC97nC5TLBXbXphd6JsgTWQyASGJuFE
Ethereum Address: 0xc7e8f3828b8e9562624dD9B99569C3784bCCC969

This bug report has been added to our tracker and received by our development team.