# Newlines at the end of list items should not yield \<br\>s

**URL:** <https://meta.discourse.org/t/newlines-at-the-end-of-list-items-should-not-yield-br-s/31109>\
**Category:** Bug\
**Tags:** markdown-it-review\
**Created:** [Julho 16, 2015, 1:41pm UTC](https://meta.discourse.org/t/newlines-at-the-end-of-list-items-should-not-yield-br-s/31109 "2015-07-16T13:41:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![heinrich5991](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heinrich5991/32/114586_2.png) [@heinrich5991](https://meta.discourse.org/u/heinrich5991)\
**Post date:** [Julho 16, 2015, 1:41pm UTC](https://meta.discourse.org/t/newlines-at-the-end-of-list-items-should-not-yield-br-s/31109/1 "2015-07-16T13:41:12Z")

</div>

Newlines in list items are treated no different than normal newlines. This results in

```
<ul>
<li>Item 1
<li>Item 2
</ul>

```

- Item 1
- Item 2

not being the same as

```
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>

```

- Item 1
- Item 2

The first second results in extraneous space between the list elements, the first one doesn’t. Both contain unnecessary `<br>`s though, although in the first case they are ignored by the browser.

I get that this is a useful feature outside lists, but it’s not what the user expects inside of lists, a new list item automatically gets a new line – no need to generate `<br>` in either of the above cases.

---

_[View the full topic](https://meta.discourse.org/t/newlines-at-the-end-of-list-items-should-not-yield-br-s/31109)._
