Skip to content

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

Closed

Description

@ilyakam

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 (d36b7da)

Environment

macOS 15.7.9

Logs or stack traces

N/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.

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions