Editor erroneously completes bold/italics markdown inside code blocks

I’m not sure what terms to search for but I didn’t find any obvious existing report about this bug, apologies if it’s redundant…

Steps to reproduce

  1. Enable “auto pair Markdown syntax” option, if disabled.
  2. Start a code block with either a single backtick or triple.
  3. Type a * or _ into that code block.

Expected result

I expect auto pairing to be disabled while in a code block, since code blocks don’t support nested Markdown syntax.

Actual result

It adds a second * or _ to match the one typed to the code block.

Environment

  • Operating system: Windows 11
  • Obsidian version: 0.12.19

I think you need to complete the “`” + “`” or “```” + “```” pair and type inside that.

This works for me.