Numbered Lists Reordering

Operating system

Windows

Joplin version

3.2.13

Desktop version info

Joplin 3.2.13 (prod, win32)

Client ID: 8a7835c798b146ca87fc403a2a345c0f
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: a898e17

Backup: 1.4.2
Freehand Drawing: 2.14.0

Sync target

OneDrive

Editor

Markdown Editor

What issue do you have?

Deleting lines from a numeric list doesn't reorder the list. I've noticed this in both the Markdown and Rich Text editors. The reason I bring this up is because I would like to move items within a list and also move items between two different lists. This is most of the issues I found with numeric lists.

The examples below are all based on this original numeric list. This is the way it would look before making changes.

  1. Line 1
  2. Line 2
  3. Line 3
    1. Sub Line 3.1
    2. Sub Line 3.2
    3. Sub Line 3.3
  4. Line 4
  5. Line 5
  6. Line 6

If I delete a numeric line 1 it doesn't reorder the list, i.e. 2 becomes 1 at the top of the list. This happens whether I just delete it or use ctrl + X to move it elsewhere. However, pasting it elsewhere does work, but it isn't ordered properly. You can see the differences in Markdown vs. Rich Text in the following examples.

Markdown Example:
2. Line 2

  1. Line 1
  2. Line 3
    1. Sub Line 3.1
    2. Sub Line 3.2
    3. Sub Line 3.3
  3. Line 4
  4. Line 5
  5. Line 6

Rich Text Example:
2. Line 2
3. Line 1
4. Line 3
1. Sub Line 3.1
2. Sub Line 3.2
3. Sub Line 3.3
5. Line 4
6. Line 5
7. Line 6

If I delete a line or sub line using delete or ctrl + X to move it elsewhere it doesn't reorder the list. In the list below you can see the sub lines are now ordered 1 then 3. You can also see that the main lines are now ordered 4 then 6.

  1. Line 1
  2. Line 2
  3. Line 3
    1. Sub Line 3.1
    2. Sub Line 3.3
  4. Line 4
  5. Line 6

If I add a new line between existing lines by hitting enter at the end of a line it puts a hard return instead of creating a new line that's properly ordered. Oddly this doesn't work in Markdown, but does work in Rich Text. If I add a blank line in Rich Text it works, but if I leave it blank after the number there's a hard return in markdown and it's no longer ordered correctly.

Markdown Example:

  1. Line 1

  2. Line 2

  3. Line 3

    1. Sub Line 3.1

    2. Sub Line 3.2

    3. Sub Line 3.3

  4. Line 4

  5. Line 5

  6. Line 6

Rich Text Example:

  1. Line 1
  2. Line 2
  3. Line 3
    1. Sub Line 3.1
    2. Sub Line 3.2
    3. Sub Line 3.3
  4. Line 4
  5. Line 5
  6. Line 6

Copying and pasting an entire numeric list in Rich Text works, but changes it to a bulleted list. This works properly in Markdown.

Thanks for any help you can provide!

Looks like : Bulleted, numbered and checkboxed lists : strange behaviour (RTE) - BUG => GITHUB - #4 by pschapman

I'm sorry, but some of those examples didn't display correctly when I posted them. Here's a list of the errors:

The first Markdown example shouldn't have a hard return between 2 and 1. 2 should also be tabbed in to align with 1.

The first Rich Text example shows the sub lines in line with the main lines. These are incorrect in the forum and are tabbed in correctly in the software.

The second Markdown example shouldn't have space between each line. However, there should be a hard return after Sub Line 3.1. Sub Line 3.2 and Sub Line 3.3 should start with a 3. and 4. In other words the lines should be 1, hard return, 3, and 4.

You should use screenshots !
On windows use GREENSHOT : https://getgreenshot.org/
On linux use KSNIP : GitHub - ksnip/ksnip: ksnip the cross-platform screenshot and annotation tool

Use a clipboard copy in these softwares (= copy of the screen into memory) and simply paste into the forum page.

No problem, but I need to move onto something else right now. I'll post screenshots as soon as I can.

Obviously it's bug.
After taking screenshots and put them here, you should fill out this bug report:

Here's the animated gif I posted.

2025-04-05_15-58-37

As previously stated, issue is in the editor window. Rendered output is always correct.

Joplin 3.2.13 (prod, win32)

Client ID: 56abc1b6af6d4a41ab561a71c33fdd49
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: a898e17

Backup: 1.4.2
Freehand Drawing: 2.14.0
Outline: 1.5.14
1 Like

This Markdown ordered lists table shows how rendered output gets reordered even if the Markdown editor text differs. Moreover, switching to the Rich Text editor will show the same list that the Markdown preview did.

If you use the legacy editor on desktop, a workaround for this issue could be to enable and use only the Automatically correct list numbering when editing lists option of the Enhancement plugin. It reorders lists for both Markdown and Rich Text editors, even after moving lines up/down the list as described here: [Android Toolbar Feature Request] Add ability to move line up/down - #6 by Steph

While the beta editor reorders numbered lists, reordering a list after moving lines up/down requires indenting then de-indenting the line for:

  • The first item in any ordered list (if you want to reset the list to start at 1.)
  • Any ordered list item
1 Like

"Legacy" editor and "beta editor" ? You mean "markdown" editor and "RTE" editor ?

No, I mean the legacy and beta Markdown editors, which you can toggle between at Tools > Options > General > Show Advanced Settings > Use the legacy Markdown editor.

Thanks ! I didn't notice the existence of two markdown editor.
So, according to you:
In order to face the problem

  • legacy markdown editor => "Enhancement" plugin
  • beta markdown editor => we must reorder the list by ourself