Editor Toggle Options Not Working Properly

Steps to reproduce

Editor toggle options apply the formatting but don’t remove it (they fail to trigger the reversing action). Examples include:

  • Toggle bold
  • Toggle italic
  • Toggle strikethrough
  • Toggle highlight
  • Toggle inline math
  • Toggle code
  • Toggle comment (this one adds the %% syntax on every execution instead of removing it)

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

Yes.

Expected result

Editor toggle options properly remove the specified formatting.

Actual result

Editor toggle options do not remove the specified formatting.

Environment

SYSTEM INFO:
	Obsidian version: 1.13.1
	Installer version: 1.12.7
	Operating system: Windows 11 Pro 10.0.26200
	Login status: logged in
	Language: en
	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