# Some lists are not rendered as expected

**URL:** https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979
**Category:** Support
**Created:** [December 13, 2017, 6:12pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979 "2017-12-13T18:12:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [December 13, 2017, 6:12pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/1 "2017-12-13T18:12:08Z")

</div>

- 1

- 2

- 3

vs.

- a
- b

foo

- c

123 is rendered as 3 individual lists, abc as 2 lists.

(Although this might also be a Markdown “feature”, please close if this is the case)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 13, 2017, 6:32pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/2 "2017-12-13T18:32:12Z")

</div>

123 is rendered as one unordered list, just with spacing. ab and c are two lists, as you added a non-list element.

Here’s your markdown:

```plaintext
- 1
- 2

- 3

vs.

- a
- b

foo

- c

```

Note the raw HTML:

```plaintext
<div class="cooked">
    <ul>
        <li>
            <p>1</p>
        </li>
        <li>
            <p>2</p>
        </li>
        <li>
            <p>3</p>
        </li>
    </ul>
    <p>vs.</p>
    <ul>
        <li>a</li>
        <li>b</li>
    </ul>
    <p>foo</p>
    <ul>
        <li>c</li>
    </ul>
</div>

```

So everything appears to be working as I’d expect. What did you expect to happen?

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [December 13, 2017, 7:26pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/3 "2017-12-13T19:26:10Z")

</div>

To 1 and 2 not having any spacing, optionally also for 3 to be in its own list.

Basically:

```plaintext
    <ul>
        <li>
            1
        </li>
        <li>
            2
        </li>
    </ul>
    <ul>
        <li>
            3
        </li>
    </ul>

```

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 13, 2017, 7:43pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/4 "2017-12-13T19:43:44Z")

</div>

That’s not how Commonmark works. You need something between the lists, not just a blank line.

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [December 13, 2017, 7:56pm UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/5 "2017-12-13T19:56:08Z")

</div>

You are right, this is really an eample in the spec:

> **[CommonMark Spec](https://spec.commonmark.org/0.28/)**

What a …strange… thing.

The only solution for my problem seems to be this:

```plaintext
- foo
- bar
<br>
- baz

```

- foo
- bar  
  
- baz

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 14, 2017, 5:20am UTC](https://meta.discourse.org/t/some-lists-are-not-rendered-as-expected/75979/6 "2017-12-14T05:20:52Z")

</div>


