SUNDONG
SUNDONG

Reputation: 2749

Multi-line bullet list item in Markdown

Does Markdown support bullet list items on multiple lines (with newlines inside the item's source)? In HTML, I can put <br> inside it.


UPDATED in Jan 2020

Thank you for your contribution. Two trailing spaces work in the Jupyter environment.

Upvotes: 117

Views: 68743

Answers (6)

Kotodid
Kotodid

Reputation: 1179

Alternative to double trailing space you can add a trailing backslash.

* Item 1\
blah blah blah
* Item 2\
blah blah blah

rendered to

  • Item 1
    blah blah blah
  • Item 2
    blah blah blah

Upvotes: 82

PiTheNumber
PiTheNumber

Reputation: 23542

Summary of all answers.

Add trailing:

  • Backslash \
  • HTML Line break <br>
  • Two dots .. (did not work for me)
  • Two spaces (some IDEs remove this)

I like the \ best. It is also used in the Linux shell.

Upvotes: 5

Seyma Kalay
Seyma Kalay

Reputation: 2861

You may check out this.

    * unordered list
    + sub-item 1 
    + sub-item 2 
        - sub-sub-item 1
        
* unordered list
    + sub-item 1 
    + sub-item 2 
        - sub-sub-item 1   

Upvotes: 0

Andrej Debenjak
Andrej Debenjak

Reputation: 2132

Two spaces at the end of line are used to insert a line-break.

Example (replace the two dots with two spaces!):

* Item.. 
some indented text

This will render as:

  • Item
    some indented text

Upvotes: 147

Alexander Tsepkov
Alexander Tsepkov

Reputation: 4186

A more markdown-friendly alternative (to accepted answer) is to add 2 trailing spaces to the first line.

Upvotes: 66

SUNDONG
SUNDONG

Reputation: 2749

Oh I just checked <br> also works in markdown too...

Upvotes: 5

Related Questions