A backslash does not escape a closing "==" or "]]", though it escapes an opening "==" and a closing "$"

Steps to reproduce

Paste into a note and open it in Reading view:

a ==text\== b

a \==text== b

a $x\$ b

[[target\]]

Did you follow the troubleshooting guide?

Yes (reproduced in a fresh vault, no community plugins).

Expected result

A backslash before a punctuation character makes that character literal, as everywhere else in Markdown. So ==text\== and [[target\]] are plain text, the same way \==text== and $x\$ already are.

Actual result

Line Reading view
a ==text\== b highlight text\, with the backslash shown inside it
a \==text== b a ==text== b, no highlight (escape honoured)
a $x\$ b a $x$ b, no math (escape honoured)
[[target\]] a link to target whose text is target\

So the escape works on an opening == and not on a closing one, and works on a closing $ but not on a closing ]]. In the link the backslash is dropped from the target and kept in the shown text, so the two halves of one link disagree on whether it is there.

Environment

SYSTEM INFO:
	Obsidian version: 1.14.5
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Fresh vault, no community plugins, default theme. Also reproduced on the current Catalyst build.

Additional information

Related feature request: Consistent escaping in wikilink titles.

Re-paste “Show debug info” before posting.


Credit: found by @saberzero1 with the remark-obsidian parity harness; I re-checked it on 1.14.5 and the current Catalyst build.

1 Like