Using an escape character at the start of a list item makes the escaped character disappear in Live Preview

Steps to reproduce

  • Set the view mode to Live Preview
  • Create a new list item using -
  • Use an escape character plus a hash symbol in the first list item: - \#someText
  • Hit enter to move to a new line or click away from the first list item. Both the escape character and the hash symbol disappear from view. Ideally, the escaped character (the hash symbol) should still be visible.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

In Live Preview, I expect Obsidian to display a bullet point plus the text #someText.

Actual result

In Live Preview, Obsidian displays the bullet point plus someText without the hash symbol.

Environment

SYSTEM INFO:
	Obsidian version: v1.6.7
	Installer version: v1.6.5
	Operating system: Windows 11 Home 10.0.22635
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

Below is a screenshot comparison between Source mode and Live Preview which displays how an escape character works in a regular line of text (top section) versus as a list item (bottom section).

You can see that in regular text, the escaped hash symbol remains visible in either view mode. When the escaped hash symbol starts a list item, the hash symbol disappears when the view mode is set to Live Preview. In Reading mode, the hash symbol remains visible as expected with either usage.

Does the backslash show if it is also escaped?

- \\#someText

I can repro with Obsidian 1.7.0 (+ MacOS Big Sur) :blush: .
I think though that this could be similar to this one:


From what I can see, in Live Preview, the list item appears as expected but the backslash shows up in Reading mode and the #someText is registered as a tag :blush:

2 Likes

Steps to reproduce

CleanShot 2024-07-23 at 21.03.09

Expected result

I expect to see _test_ and not test_ when escaping the underscore in a list

Actual result

See attached gif:

Environment

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.4.16
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: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

thanks

will be fixed 1.7.2

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.