Inline formatting command used in a code span or block adds more symbols instead of exiting them

Steps to reproduce

  • Add inline code using ` or code block using ```.
  • Use any inline formatting shortcut (e.g. Ctrl+B, Ctrl+I, …) while writing text into it.

StartHere-ObsidianSandbox-Obsidianv1.9.112025-08-2418-53-58-ezgif.com-crop

Did you follow the troubleshooting guide? Y

Expected result

Inline formatting shortcut behaves as outside inline code / code block.

Actual result

Inline formatting shortcut puts the symbols (*) on wrong positions.

Environment

SYSTEM INFO:
	Obsidian version: v1.9.11
	Installer version: v1.9.10
	Operating system: Windows 11 Pro 10.0.22631
	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: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Additional information

The provided steps aren’t clear enough to reproduce the behavior. Here is a more complete set:

  1. Add inline code using ``` or code block using `````.
  2. Press Ctrl/Cmd B.
  3. Type some text between the asterisks that appear.
  4. Press Ctrl/Cmd B again.

Expected: Step 4 puts the cursor after the closing asterisks.

Actual: Step 4 adds another set of asterisks.

Changed title to be more specific (was “Inline Formatting Shortcuts Don’t Work Properly Inside Inline Code / Code Block”).