Code block won't close when used right after a 10th list lement & indented unordered list element

Steps to reproduce

  • Create a 10 ordered list elements.
  • Put an indented unordered list element under the 10th list element.
  • Start and finish a code block using ```.
  • After the closing ``` of the code block, press Enter and write some text.

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

Yes, issue persists in Sandbox Vault.

Expected result

I expect to see text in default styling after carrying out the steps above.

Actual result

Instead the text had the code block styling and properties.

Environment

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.10
	Operating system: #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 6.8.0-63-generic
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Obsidian gruvbox v0.2.1
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 3
	Plugins enabled: 3
		1: Iconize v2.14.7
		2: Open Link With v0.1.10
		3: Excalidraw v2.11.1

Additional information

Hey so basically what the title says. It has something to do with an indented list element and putting code block right after, the Obsidian editor thinks we are still inside the code block, even though it has been closed already. Attaching a screenshot:

1 Like

For some reason I cannot edit my own post. I wanted to add this - yes I tried putting more empty lines after the ending ```. The only thing that seemed to do anything was putting some text right after the last indented element like this:

I’ve encountered this before. Markdown for reproducing:


44. a two-digit numbered list item
	- an indented dot list item

```css
/* a comment */
```

We're still in the code block in the editing views.

But all's well in the reading view.

It seems to happen with any two-digit numbered list item followed by an indented unordered list item followed by a code block. Even with blank lines between elements.