Multi-line bullet list item in Markdown
Asked Answered
I

6

109

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

  • Item 1 first line
    Item 1 second line
  • Item 2 first line
    Item 2 second line

UPDATED in Jan 2020

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

Influent answered 12/11, 2015 at 14:21 Comment(0)
R
133

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
Rodrickrodrigez answered 26/5, 2018 at 21:36 Comment(1)
For those with auto whitespace trimming turned on (which I believe is very useful), consider using the trailing backslash solution mentioned in other answers.Uppsala
P
73

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
Pinchbeck answered 22/1, 2020 at 11:8 Comment(3)
In the Jupyter notebook markdown environment, backslash does not work.Influent
I prefer this because trailing spaces could be deleted by some editor configuration or simply not recognized by an author.Knotgrass
python-markdown does not understand last backslashSuspend
I
63

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

Illustration answered 20/12, 2016 at 14:9 Comment(1)
Nice... didn't know thisUrticaceous
I
5

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

Influent answered 12/11, 2015 at 14:24 Comment(0)
C
1

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   
Cyan answered 7/9, 2022 at 11:50 Comment(0)
A
1

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.

Adaurd answered 9/4, 2024 at 11:18 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.