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

**URL:** <https://forum.obsidian.md/t/a-backslash-does-not-escape-a-closing-or-though-it-escapes-an-opening-and-a-closing/119826>\
**Category:** Bug reports\
**Created:** [October 25, 2026, 3:27am UTC](https://forum.obsidian.md/t/a-backslash-does-not-escape-a-closing-or-though-it-escapes-an-opening-and-a-closing/119826 "2026-10-25T03:27:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnaoumov](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnaoumov/32/22325_2.png) [@mnaoumov](https://forum.obsidian.md/u/mnaoumov)\
**Post date:** [October 25, 2026, 3:27am UTC](https://forum.obsidian.md/t/a-backslash-does-not-escape-a-closing-or-though-it-escapes-an-opening-and-a-closing/119826/1 "2026-10-25T03:27:48Z")

</div>

### Steps to reproduce

Paste into a note and open it in Reading view:

```markdown
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

```auto
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](https://forum.obsidian.md/t/65013).

Re-paste “Show debug info” before posting.

* * *

Credit: found by @saberzero1 with the [remark-obsidian](https://github.com/quartz-community/remark-obsidian) parity harness; I re-checked it on 1.14.5 and the current Catalyst build.
