Format symbol autopairing shouldn't happen in code blocks

Steps to reproduce

  1. Create a multiline codeblock.
  2. Type x = 4 * 5

Expected result

No extra asterisk is added.

Actual result

Formatting symbols are auto-paired, so we get another asterisk:

x = 4 * 5*

This also happens with underlines, for example. However, formatting characters are not observed in codeblocks. And in code blocks it is much more likely (for example) that a user is trying to type out a multiplication expression rather than italicize their code.


	Obsidian version: v0.13.23
	Installer version: v0.13.23
	Operating system: Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 21.3.0
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Safe mode: on



1 Like