Indented numbered list plus code block corrupt the editor

Steps to reproduce

  1. Create a new note.

  2. Paste the following:

  3. aaa

    1. bbb


The Average Directional Index (ADX) is used to measure the strength or weakness of a trend, not the actual direction. Directional movement is defined by +DI and -DI.

  1. You will see beginning from “# Interpretation” the format of everything is corrupted.

Expected result

Normal formatting.

Actual result


  • Operating system: macOS 12.6.3 (21G419)
  • Debug info:

Obsidian version: v1.1.9
Installer version: v1.1.9
Operating system: Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 21.6.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

Thanks. The editor doesn’t interpret correctly a list beginning with 01.

Not only that.

If 01. aaa is replaced with 10. aaa or 11. aaa, or 21. aaa, the bug remains. As a matter of fact, it seems to me that as long as the list number is greater than 9, the problem arises.

For example,