Escaped charcters are broken apart on newline

Steps to reproduce

  • In a document, end a line with \fi
  • Press enter.
  • Move the cursor behind the i of the \fi
  • Press enter agian.

Expected result

Just a new line.

Actual result

  • The i is moved into the new line
  • The line before is still displayed as \fi, but if you put the cursor there again, it will be just \f (without i).

Environment

  • Operating system: Debian Buster / Gnome
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.0.0
    Installer version: v0.15.9
    Operating system: #1 SMP Debian 5.10.127-2 (2022-07-23) 5.10.0-16-amd64
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
none


Additional information

After creating the newline:
2022-11-02_12-12

When moving the cursor behind the broken \fi
2022-11-02_12-12_1

Can’t repro.
Download and reinstall obsidian. Post a screen recording of this happening in the sandbox vault.

Problem persists on my machine after reinstalling the Obsidian-1.0.3.AppImage

Here is a recording:
obsidian-2022-11-15_10.22.53.mkv.zip (267.1 KB)

Note how the bug only occurs with “fi” but not with other two-character macros like “ok”.

Here is the Debug Info after the update:

SYSTEM INFO:
	Obsidian version: v1.0.3
	Installer version: v1.0.3
	Operating system: #1 SMP Debian 5.10.149-2 (2022-10-21) 5.10.0-19-amd64
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Thanks, I can’t reproduce. Maybe there is something on your computer that is causing this. A text expander, not sure.