List numbering gets messed up when I delete list items

Operating system

Android

Joplin version

3.0.8

Editor

Markdown Editor

What issue do you have?

When I open a note and delete an item from a numbered list, the list numbering doesn't update in the edit version of the note (the view version is correct), and just skips the index of the deleted item. The last number in my list is 24 in view mode, but 28 in edit mode because some indexes were skipped.

@Austin welcome to the forum.

Joplin uses Markdown at its core for formatting notes. Markdown basically ignores the number (see exception below) so you could use all 1's or any random sequence. When the Markdown is rendered the list will be correctly numbered.

Personally I enter all numbered lists as:

1. item
1. item
1. item

which displays as

  1. item
  2. item
  3. item

The exception is the first number. The renderer will count on FROM that number and ignore whatever is typed after so

77. item
65. item
2. item

displays as

  1. item
  2. item
  3. item

This lets you manually "resume" lists broken by a line of text inbetween.

Example:

2 Likes

If you sync with desktop, use the legacy editor, and only need lists starting at 1., try the list numbering correction feature of the desktop Enhancement plugin as shown here: Plugin: Many enhancement for my daily usage [v1.2.0][2023-03-30] - #46 by SeptemberHX

Even though Markdown works as it is designed to, a cross-platform way to autocorrect list numbers while keeping the first number would be neat.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.