Toggle numbered list creates 1.1.1. when a blank line is selected

Steps to reproduce

  1. Take a 5-line file for example:
abc

cat 
dog
goat
  1. select line 2-5(including a blank line and the three animals.)
  2. use command “toggle numbered list”

Expected result

abc

1. cat
2. dog
3. goat

Actual result

abc

1. cat 
1. dog
1. goat

Environment

  • Operating system: Window11 22H2
  • Debug info:

SYSTEM INFO:
Obsidian version: v1.0.0
Installer version: v0.15.9
Operating system: Windows 10 Home 10.0.22621
(This is wrong, it’s win 11. Maybe try debugging the debug info too?:joy:)
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Slightly OT, but I wish there was a setting in Obsidian to make ALL numbered lists default to

1. foo
1. bar
1. baz

Makes it so much easier to re-order list items without having to renumber everything. The numbering is always rendered properly in preview mode anyway.

1 Like

I wouldn’t consider that a bug. It’s valid markdown for a numbered list and as luckman pointed out, has distinct advantages over incrementing numbers and renders as an incrementing numbered list in preview.

It’s valid Markdown but inconsistent with the normal behavior of “Toggle numbered list”.