Numbered list behavior in code block

Steps to reproduce

Paste a piece of text containing a numbered list into the code block or press enter on the list item in the code block.

Expected result

Don’t modify the numbered list in the code block.

Actual result

The numbered list behaves like a regular numbered list within a code block.

Environment

Obsidian version: 1.12.7Installer version: 1.12.7Operating system: #1 SMP PREEMPT_DYNAMIC Thu Mar 12 15:50:03 UTC 2026 6.19.7-200.fc43.x86_64Login status: not logged inLanguage: enInsider build toggle: offLive preview: onBase theme: lightCommunity theme: Flexoki 1.1.0Snippets enabled: 0Restricted mode: offPlugins installed: 2Plugins enabled: 11: Auto Link Title v1.5.5


Additional information