简体   繁体   English

markdown 中的多行项目符号列表

[英]Multi-line bullet list in markdown

Does markdown supports multi-line (line-break inside the item) bullet list? markdown 是否支持多行(项目内换行)项目符号列表? In HTML, I can put <br> inside it.在 HTML 中,我可以将<br>放入其中。

  • Item 1项目 1
    blah blah blah等等等等等等
  • Item 2第 2 项
    blah blah blah等等等等等等

UPDATED in Jan 2020 2020 年 1 月更新

Thank you for your contribution.感谢您的贡献。 Two trailing spaces work in the Jupyter environment.两个尾随空格在 Jupyter 环境中工作。

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一些缩进的文本

一个对降价更友好的替代方案(接受的答案)是在第一行添加 2 个尾随空格。

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

哦,我刚刚检查了<br>也适用于降价...

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   

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM