# How to avoid \<p\> generation in unordered lists?

**URL:** <https://discourse.gohugo.io/t/how-to-avoid-p-generation-in-unordered-lists/12344>\
**Category:** support\
**Created:** [June 9, 2018, 8:47pm UTC](https://discourse.gohugo.io/t/how-to-avoid-p-generation-in-unordered-lists/12344 "2018-06-09T20:47:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenroose](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stevenroose](https://discourse.gohugo.io/u/stevenroose)\
**Post date:** [June 9, 2018, 8:47pm UTC](https://discourse.gohugo.io/t/how-to-avoid-p-generation-in-unordered-lists/12344/1 "2018-06-09T20:47:04Z")

</div>

I have a simple markdown list that translates to a `<ul>`. However, somehow for every item a `<p>` is generated and my theme has a very big `margin-bottom` for the `<p>` tag.

Is there a way to avoid these `<p>` tags to be generated inside unordered lists?

---

<div class="post-metadata">

**Author:** ![anthonyfok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/anthonyfok/32/106_2.png) [@anthonyfok](https://discourse.gohugo.io/u/anthonyfok)\
**Post date:** [June 10, 2018, 4:54am UTC](https://discourse.gohugo.io/t/how-to-avoid-p-generation-in-unordered-lists/12344/2 "2018-06-10T04:54:27Z")

</div>

Hi! Are you using the default Markdown engine, i.e. Blackfriday, in Hugo?

Blackfriday (hence Hugo) usually doesn’t add the `<p>` tag, and I was unable to reproduce the problem you’re seeing.

Do you have an example that we can look at?

Also could be helpful is this issue: [https://github.com/gohugoio/hugo/issues/1642](https://github.com/gohugoio/hugo/issues/1642)

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 10, 2018, 6:24pm UTC](https://discourse.gohugo.io/t/how-to-avoid-p-generation-in-unordered-lists/12344/3 "2018-06-10T18:24:41Z")

</div>

That isn’t expected behavior. Share you code and someone can help you troubleshoot that.
