When typing an underscore it automatically assumes all should be italic afterwards and the editor can get confused

WHAT IS THE BUG

When typing (technical information) that requires underscores, the editor is confused. And makes it near impossible to fix the mistakes.

HOW TO REPRODUCE IT

  1. Start typing a sentence like ‘Look at variable created_at’
  2. Now type more following the last word, followed by another variable name e.g. ’ and you should see updated_at changed’
  3. You will see something like the screenshot below

image

This isn’t solved when using backticks like this, but this seems like an appropriate solution:

image

THE EXPECTED BEHAVIOR

I expect this:

image

ADDITIONAL CONTEXT

SYSTEM INFORMATION

  • Device:
    Dell XPS XPS 15 9520
  • OS:
    openSUSE Tumbleweed
  • Anytype Version:
    v.0.35.0
  • Tech Info:
    Device: rocinante.localdomain
    OS version: linux x64 6.5.9-1-default
    App version: 0.35.0
    Build number: build on 2023-09-11 10:18:52 +0000 UTC from at #34462c90ec541475a6f4a24bfe3084e4a9a423dd(v0.28.2)
    Library version: v0.28.2
    Account ID: A7hcoJeHP2g7KJGzcjxyq9pwXrGEKAjmtZEWHigwgQRqMFFZ
    Analytics ID: undefined
    Device ID: undefined