"Toggle numbered list" command sets all nested items to '1' instead of sequentially numbering

Steps to reproduce

  1. Switch to Live Preview or Source view.
  2. Create a bullet (unordered) list like so:
- A
- B
    - B1
    - B2
    - B3
- C
  1. Select the entire list.
  2. Run the “Toggle numbered list” command.

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

Y

Expected result

1. A
2. B
    1. B1
    2. B2
    3. B3
3. C

Actual result

1. A
2. B
    1. B1
    1. B2
    1. B3
3. C

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.7
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Might be related to: Toggle numbered list creates 1.1.1. when a blank line is selected

1 Like

Does it still do it after you turn on Restricted mode on (or disable all of your plugins) and restart Obsidian?

All plugins were disabled already. But I did as you said–enabled restricted mode and restarted Obsidian. Same result.

1 Like

I created a new vault on my Android phone in 1.7.7, and can confirm that the second level all remains as 1.

If I reselect the second level, and run the Toggle numbered list command twice, it’ll get the correct numbering.

The bug also occurs on a third level:

1 Like

Yep, you described my current workflow when working with such lists :pensive:

The community plugin Outliner can automatically correct the list whenever the list is updated.
(This won’t fix the bug though.)

It can? I have it enabled and it doesn’t alter the numbering. But, speaking of plugins, Linter’s Ordered List Style rule can correct this indeed.