I would expect to see the backslash character in the inline code block, with no processing, independently of the cursor position.
Actual result
The code block is rendered correctly if the cursor is inside the block itself, or adjacent to one of the backticks.
An additional blank space is added after the backslash character if the cursor is on the same line, but not adjacent to the code block.
The backslash is not displayed at all if the cursor is on a different line.
Environment
SYSTEM INFO:
Obsidian version: v1.6.1
Installer version: v1.5.12
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 23.5.0
Login status: logged in
Catalyst license: vip
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
SYSTEM INFO:
Obsidian version: v1.6.1
Installer version: v1.5.12
Operating system: Windows 10 Home 10.0.19045
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
This seems to be a regression in 1.6.1 vs 1.5.x. I don’t think 1.6.0 had this problem either.
I have the same issue, whether the backslash is in inline or not. When I tried to type \w: it removes the backslash. And when I type \w: without the inline code markers it still removess the backslash. This happens in sandbox mode as well. To reproduce the issue, the backslash must be the first character of a code block or sentence. For backslashes at the beginning of a sentence or line, it can be remedied by typing a second backslash or escape character. However, for code, this does not work.
SYSTEM INFO:
Obsidian version: v1.6.3
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Minimal v7.5.4
Snippets enabled: 0
Restricted mode: off
Plugins installed: 17
Plugins enabled: 14
1: Importer v1.6.1
2: Advanced Tables v0.21.0
3: Paste URL into selection v1.7.0
4: Minimal Theme Settings v7.5.0
5: Style Settings v1.0.8
6: BRAT v1.0.1
7: Breadcrumbs v4.2.35-beta
8: Colored Tags v5.0.0
9: Tag Summary v2.1.5
10: Dataview v0.5.66
11: Open vault in VSCode v1.2.2
12: Buttons v0.5.1
13: Outliner v4.8.1
14: Highlightr v1.2.2
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.