正确标志着多个嵌套的列表内相同的项目清单

0

的问题

在一。 .md 文件中,我试着写相当于:

<ul>
  <li>This is a list item</li>
  
  <li>This is also a list item
  
    <ul>
      <li>...containing a sublist</li>
      <li>with two items.</li>
    </ul>
    
    and then...
    
    <ul>
      <li>another sublist</li>
      <li>which also has two items</li>
    </ul>
  </li>
  
  <li>This is a third list item</li>
</ul>

我已经尝试了许多变化:

 - This is a list item
 - This is also a list item
   - ...containing a sublist
   - with two items.
 
   and then...
 
   - another sublist
   - which also has two items
  - This is a third list item

但是我还没有找到如何成功地巢多个单独排序的名单内一个单一序列的项目。

我应该怎么标记了线 and then... 因此,它(和每一个行之后)正确地呈现在想味的降价?

1

最好的答案

-1

你可以使用伪造的子弹列出了实现这一点。 你可以建立它们使用非破坏性的空间和避免滞纳金(Z点符号)的字符。

 - This is a list item
 - This is also a list item&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;⦁&nbsp;&nbsp;...containing a sublist&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;⦁&nbsp;&nbsp;with two items.
 
   and then...
 
&nbsp;&nbsp;&nbsp;⦁&nbsp;&nbsp;another sublist&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;⦁&nbsp;&nbsp;which also has two items
 - This is a third list item

结果是:

  • 这是一个列表中的项目

  • 这也是一个列表中的项目
    避免滞纳金...含有子列表
    避免滞纳金与两个项目。

    然后...

    避免滞纳金的另一个子列表
    避免滞纳金其中也有两个项目

  • 这是一个第三列项目

2021-11-23 21:10:43

谢谢,@TamásSengel-非常赞赏。
Rounin

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................