# Numbered List

**URL:** <https://discourse.joplinapp.org/t/numbered-list/1722>\
**Category:** Features\
**Created:** [28 February 2019 11:30 UTC](https://discourse.joplinapp.org/t/numbered-list/1722 "2019-02-28T11:30:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferent](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ferent/32/186_2.png) [@ferent](https://discourse.joplinapp.org/u/ferent)\
**Post date:** [28 February 2019 11:30 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/1 "2019-02-28T11:30:53Z")

</div>

Hello, I don’t know if this has been requested/informed already. With the latest versions of Joplin, I’m realising the app tries to be too smart in terms of the way it number the list I create, as Microsoft Word does, which is a bit annoying from my point of view.

So if for example I create a numbered list as follow:  
1.  
2.  
3.  
everything looks good, but if I want to introduce a bunch of text in between, or under specific conditions, even if I’m specifying the next number is e.g. 4, the preview reset the numbered list to 1 again. E.g. try to create a note with the following content:  
1. bla  
`bla bla`  
2.  
3.  
4.  
the preview shows:  
1. bla

```
bla
bla

1. 
2.
3. 

```

I think it should be much better if the preview just shows the numbers I’m hard-coding in the MD as it allows to create multiple numbered list (one inside others) without having to fight with the way the preview understand the list.

Many thanks and congrats for such a great app, latest releases are simply awesome.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [28 February 2019 21:14 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/2 "2019-02-28T21:14:37Z")

</div>

Hmm, you are only partly right, but I agree that this automatic numbering is annoying. Maybe there’s a way to use a setting for that. I’m not sure why this auto-numbering happens. @laurent, is this built into the markdown-html rendering?

Anyway, here’s how it looks in my Joplin:

![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/fb4b977a19a4feaa877493cc8193dca3ba45ffb3.png)

However, if you use empty lines before and after the text, the auto-numbering occurs:

![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/c1089d3cb715923487230087c3741e30d3fa9a46.png)

---

<div class="post-metadata">

**Author:** ![ferent](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ferent/32/186_2.png) [@ferent](https://discourse.joplinapp.org/u/ferent)\
**Post date:** [28 February 2019 21:53 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/3 "2019-02-28T21:53:39Z")

</div>

I think it also happens if you use the ``` to mention special code in between the numbered list and I use it quite a lot. I'm not in front of my laptop to test it right know but almost sure it happens under this situation too.

Thanks for testing it 🙂

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [28 February 2019 22:10 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/4 "2019-02-28T22:10:30Z")

</div>

For Markdown issue, the best is to try on [https://markdown-it.github.io/](https://markdown-it.github.io/) If it’s rendering in one way there, and in a different way in Joplin, there’s probably a bug in Joplin. Otherwise, it’s working as expected.

---

<div class="post-metadata">

**Author:** ![ferent](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ferent/32/186_2.png) [@ferent](https://discourse.joplinapp.org/u/ferent)\
**Post date:** [28 February 2019 22:11 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/5 "2019-02-28T22:11:56Z")

</div>

Will do tomorrow, thanks!

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [28 February 2019 22:41 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/6 "2019-02-28T22:41:41Z")

</div>

FYI:

Here the [test output](https://markdown-it.github.io/#md3=%7B%22source%22%3A%221.%20Number%201%5Cn2.%20Number%202%5Cn3.%20Number%203%5CnText%20here%20line%201%5CnText%20here%20line%202%5Cn4.%20Number%204%5Cn5.%20Number%205%5Cn%5Cn---%5Cn%5Cn1.%20Number%201%5Cn2.%20Number%202%5Cn3.%20Number%203%5Cn%5CnText%20here%20line%201%5CnText%20here%20line%202%5Cn%5Cn4.%20Number%204%5Cn5.%20Number%205%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Atrue%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D).

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/18caed2f634d278af05758c60e2af1d5dd23c44f.png)

---

<div class="post-metadata">

**Author:** ![fabdb](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/fabdb/32/1731_2.png) [@fabdb](https://discourse.joplinapp.org/u/fabdb)\
**Post date:** [6 March 2019 15:27 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/7 "2019-03-06T15:27:18Z")

</div>

Apparently, numbered lists work fine in Joplin when you indent the text or code in between :

 ![Joplin_numbered_list](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/bd9fe6db849df72bc92c98ea992fae685928d8cf.jpeg)

I found the behaviour of Makdown-it quite different from Joplin's...it always succeeded in displaying a nice numbered list, whatever I tried as input text ...  
**Markdown-it :**

 ![Mit_numbered_list](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/7579be3c54062aea0def537c1d7b600af3e5f331.jpeg)  
**Joplin desktop (1.0.135 Windows 10) :**  
 ![Joplin_numbered_list2](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/b5e4737c66c6e183ded3b30bbfd55821be1787f0.jpeg)

Should we report this as a bug in Github or is it just due to a different Markdown parser ?

\_\_\_NB :\_\_\_I am new to Joplin and I didn't had the chance yet to say thanks to @laurent. Great job ! 🙂

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [6 March 2019 17:24 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/8 "2019-03-06T17:24:23Z")

</div>

> [@fabdb](#):
>
> I found the behaviour of Makdown-it quite different from Joplin’s

It shouldn't be. Joplin uses markdown-it. The only thing that is differrent is that Joplin uses the `breaks` option by default. (check the `breaks` checkbox on the demo page).

But I've noticed a rendering issue. As you can see in my screenshot (first one) above the spacing between `Number 3`, `Text here line 1`, `Text here line 2`, and `Number 4` is not correct.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [6 March 2019 20:09 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/9 "2019-03-06T20:09:06Z")

</div>

The HTML to MD code will be rewritten into something cleaner from the next version, and it seems as a result this bug has been fixed:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/1X/1d34aaa49f5883ded760e2cfb11e85d765b7571e.png)

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [7 March 2019 06:40 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/10 "2019-03-07T06:40:22Z")

</div>

Nice, sounds great.

---

<div class="post-metadata">

**Author:** ![fabdb](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/fabdb/32/1731_2.png) [@fabdb](https://discourse.joplinapp.org/u/fabdb)\
**Post date:** [7 March 2019 07:54 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/11 "2019-03-07T07:54:03Z")

</div>

> [@tessus](#):
>
> Joplin uses markdown-it

I lacked this info. Thanks for the update.

> [@laurent](#):
>
> it seems as a result this bug has been fixed

Great news 🙂

---

<div class="post-metadata">

**Author:** ![ferent](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ferent/32/186_2.png) [@ferent](https://discourse.joplinapp.org/u/ferent)\
**Post date:** [11 March 2019 14:31 UTC](https://discourse.joplinapp.org/t/numbered-list/1722/12 "2019-03-11T14:31:26Z")

</div>

Last version solves the issue. Many thanks!!
