# Markdown unordered list parsing issue?

**URL:** <https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728>\
**Category:** support\
**Created:** [March 23, 2019, 3:05pm UTC](https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728 "2019-03-23T15:05:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flips](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/flips/32/7296_2.png) [@flips](https://discourse.gohugo.io/u/flips)\
**Post date:** [March 23, 2019, 3:05pm UTC](https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728/1 "2019-03-23T15:05:14Z")

</div>

It seems like the markdown parser does not parse more than two levels of neste unordered lists.

Having this markdown in a content file:

```auto
- Level 1 alone
- Level 1 with sublevels
  * Level 2
    + Level 3
  * Level 2
    + And more Level 3
    + Level 3 once again
  * Shoule be Level 2
- Level 1 alone at last

```

It should have resulted in three levels of `<ul>`, or so I thought. But it ended up like this:  
 ![HugoMDparsing1](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/e/e254040b7ad0097ec29b8c4b7ce0eb963e76282c.jpeg)

HTML looking like this:

```auto
<ul>
<li>Level 1 alone</li>
<li>Level 1 with sublevels

<ul>
<li>Level 2</li>
<li>Level 3</li>
<li>Level 2</li>
<li>And more Level 3</li>
<li>Level 3 once again</li>
<li>Shoule be Level 2</li>
</ul></li>
<li>Level 1 alone at last</li>
</ul>

```

Ran Hugo 0.54, then tried head.  
`Hugo Static Site Generator v0.55.0-DEV/extended darwin/amd64`  
`go version go1.12.1 darwin/amd64`

Should I report it as a bug somehow? 🙂

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [March 26, 2019, 7:22am UTC](https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728/2 "2019-03-26T07:22:00Z")

</div>

Hi,

Try with 4-space tab indents: [https://github.com/russross/blackfriday/issues/329](https://github.com/russross/blackfriday/issues/329)

---

<div class="post-metadata">

**Author:** ![flips](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/flips/32/7296_2.png) [@flips](https://discourse.gohugo.io/u/flips)\
**Post date:** [March 26, 2019, 12:22pm UTC](https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728/3 "2019-03-26T12:22:18Z")

</div>

> [@pointyfar](#):
>
> Try with 4-space tab indents: [Deep nested lists don't output correctly · Issue #329 · russross/blackfriday · GitHub](https://github.com/russross/blackfriday/issues/329)

Ah, thanks. That worked. 🙂  
(Would be nice to have two spaces work …)

So, for bug reporting, I should use github, I take it? 🤠

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [March 26, 2019, 12:39pm UTC](https://discourse.gohugo.io/t/markdown-unordered-list-parsing-issue/17728/4 "2019-03-26T12:39:08Z")

</div>

Yeah, at least specifically for this issue. Note though that that issue has been open since 2017, so…
