定义列表

定义列表

vs code 无效

一些Markdown处理器允许您创建术语及其对应定义的_定义列表_。要创建定义列表,请在第一行上键入术语。在下一行,键入一个冒号,后跟一个空格和定义。

1
2
3
4
5
6
First Term
: This is the definition of the first term.

Second Term
: This is one definition of the second term.
: This is another definition of the second term.

HTML看起来像这样:

1
2
3
4
5
6
7
<dl>
<dt>First Term</dt>
<dd>This is the definition of the first term.</dd>
<dt>Second Term</dt>
<dd>This is one definition of the second term. </dd>
<dd>This is another definition of the second term.</dd>
</dl>

呈现的输出如下所示:

First Term
This is the definition of the first term.
Second Term
: This is one definition of the second term.
This is another definition of the second term.