# Mismatched numbered list

**URL:** <https://discourse.joplinapp.org/t/mismatched-numbered-list/14999>\
**Category:** Support\
**Created:** [19 February 2021 12:00 UTC](https://discourse.joplinapp.org/t/mismatched-numbered-list/14999 "2021-02-19T12:00:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skim1124](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/skim1124/32/7296_2.png) [@skim1124](https://discourse.joplinapp.org/u/skim1124)\
**Post date:** [19 February 2021 12:00 UTC](https://discourse.joplinapp.org/t/mismatched-numbered-list/14999/1 "2021-02-19T12:00:06Z")

</div>

Does this happen to other people? Does it bother other people?

The issue is that when I add lines or delete lines in the middle of a numbered list, the numbers in the editor pane are different than the viewer pane. For example, something like this (I apologize for not making the outline look right; there are two sub-points under the third point.)

Editor vs. Viewer  
#1. 1.  
#2. 2.  
#4. 3.  
2. 1.  
3. 2.  
#5. 4.

The viewer pane gives the correct "output", but it bothers me to see skipped numbers in the editor pane.

Questions:

1. Is there something I'm doing wrong? Should I be using numbered lists differently somehow or change a setting somewhere? Or is this just how markdown works?
2. Is there a quick way to correct the editor pane so that it looks the same as the viewer pane?

I know that I can use # to make it an outline and avoid this problem, but sometimes, all I need is a simple numbered list. I use multi-level numbered lists pretty often, so I don't like to waste time fixing this kind of cosmetic inelegance.

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [19 February 2021 14:12 UTC](https://discourse.joplinapp.org/t/mismatched-numbered-list/14999/2 "2021-02-19T14:12:37Z")

</div>

> [@skim1124](#):
>
> Is there something I'm doing wrong?

No Markdown basically ignores the number (see exception below) so you could use all 1's or any random sequence. When rendered the list will be correctly numbered.

> [@skim1124](#):
>
> Or is this just how markdown works?

Yes!

Personally I enter all numbered lists as:

```auto
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

```auto
4. item
9. item
2. item

```

displays as

1. item
2. item
3. item

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

> [@skim1124](#):
>
> Is there a quick way to correct the editor pane so that it looks the same as the viewer pane?

Not that I can think of apart from manually editing the raw markdown to match!

---

<div class="post-metadata">

**Author:** ![skim1124](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/skim1124/32/7296_2.png) [@skim1124](https://discourse.joplinapp.org/u/skim1124)\
**Post date:** [19 February 2021 14:26 UTC](https://discourse.joplinapp.org/t/mismatched-numbered-list/14999/3 "2021-02-19T14:26:36Z")

</div>

Thank you. That's helpful. I think I'll use the outline mode using # for anything more than a short, simple list; and I'm even more motivated to do so since there's a cool outline view plugin,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [21 March 2021 14:27 UTC](https://discourse.joplinapp.org/t/mismatched-numbered-list/14999/4 "2021-03-21T14:27:13Z")

</div>

Closed on 21 March 2021 14:27 UTC

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