Love**is**boldA*cat*meowThis is really***very***important text.
❌ 不推荐:
markdown
Love__is__boldA_cat_meowThis is really___very___important text.
2.5 引用块语法
要创建块引用,请在段落前添加一个 > 符号。
markdown
> Dorothy followed her through many of the beautiful rooms in her castle.
渲染效果:
Dorothy followed her through many of the beautiful rooms in her castle.
2.5.1 多个段落的块引用
块引用可以包含多个段落。为段落之间的空白行添加一个 > 符号。
markdown
> Dorothy followed her through many of the beautiful rooms in her castle.>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
渲染效果:
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
2.5.2 嵌套块引用
块引用可以嵌套。在要嵌套的段落前添加一个 >> 符号。
markdown
> Dorothy followed her through many of the beautiful rooms in her castle.>>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
渲染效果:
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
2.5.3 带有其它元素的块引用
块引用可以包含其他 Markdown 格式的元素。
markdown
> #### The quarterly results look great!>> - Revenue was off the chart.> - Profits were higher than ever.>> *Everything* is going according to **plan**.
- First item- Second item- Third item - Indented item - Indented item- Fourth item
渲染效果:
First item
Second item
Third item
Indented item
Indented item
Fourth item
无序列表最佳实践
不要在同一个列表中混合使用多种分隔符。
✅ 推荐:
markdown
- First item- Second item- Third item- Fourth item
❌ 不推荐:
markdown
+ First item* Second item- Third item+ Fourth item
2.6.3 在列表中嵌套其他元素
要在保留列表连续性的同时在列表中添加另一种元素,请将该元素缩进四个空格或一个制表符。
段落示例:
markdown
* This is the first list item.* Here's the second list item. I need to add another paragraph below the second list item.* And here's the third list item.
渲染效果:
This is the first list item。
Here's the second list item。 I need to add another paragraph below the second list item。
And here's the third list item。
引用块示例:
markdown
* This is the first list item.* Here's the second list item. > A blockquote would look great below the second list item.* And here's the third list item.
渲染效果:
This is the first list item。
Here's the second list item。
A blockquote would look great below the second list item。