Hugo: How to create bulleted list?

Created on 20 Feb 2015  路  4Comments  路  Source: gohugoio/hugo

I am trying to use hugo to create a bulleted list in the post like this using markdown.

  • Red
  • Green
  • Blue

It is not generating the bulleted list. How do I get a bulleted list in the generated html?

Thanks

Most helpful comment

Hi @naveensrinivasan,

Blackfriday, the Markdown processor used by Hugo, needs a blank line between the proceeding paragraph and the start of the list.

So, this would work:

Colors:

* Red
* Green
* Blue

But this doesn't:

Colors:
* Red
* Green
* Blue

Hope this helps!

All 4 comments

Hi @naveensrinivasan,

Blackfriday, the Markdown processor used by Hugo, needs a blank line between the proceeding paragraph and the start of the list.

So, this would work:

Colors:

* Red
* Green
* Blue

But this doesn't:

Colors:
* Red
* Green
* Blue

Hope this helps!

Thank you! That answered my question.

You can also add two spaces after the line, instead of inserting the blank line prior to the bullet list.

@mohae two spaces did not work for me.

test  
- one
- two
- three
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MunifTanjim picture MunifTanjim  路  3Comments

VoidingWarranties picture VoidingWarranties  路  3Comments

marekr picture marekr  路  3Comments

tjamet picture tjamet  路  3Comments

crash-dive picture crash-dive  路  3Comments