[Bug]: Wrapping a selection with backtics doesn't highlight it as inline code#22475

opened22d agobyIilyakam

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Type anything and select it
  2. Press the backtick key (`)

Expected behavior

For the word to be wrapped in an inline code block.

Actual behavior

The selection is wrapped in backticks but not in the inline code block.

What's worse, this bug then derails the rest of the inputs so that typing a backtick inline incorrectly wraps everything between the last "closing" backtick and the new "opening" backtick as code. Hence the escalation from "Cosmetic" to "Minor bug" in the Impact dropdown.

Impact

Minor bug or occasional failure

Version or commit

Version 0.1.1-nightly.20261020.3411 (d36b7da2485b)

Environment

macOS 15.7.9

Logs or stack traces

shell
1N/A

Screenshots, recordings, or supporting files

Backticks.gif

Workaround

The workaround is to manually place the backtics before and after the word in that particular order.
This may be related to #3142 except that it happens on a US keyboard layout as well.