设置首行缩进

HCRM下载站 10 0

在Markdown中,设置首行缩进可以通过在段落的首行使用一个或多个空格来实现,具体步骤如下:

1、在段落的首行前面添加至少一个空格(通常为4个空格)。

设置首行缩进
(图片来源网络,侵删)

2、继续输入文本,保持每行的缩进一致。

This is the first line of the paragraph.
    This is the second line with an indent.
    This is the third line with an indent.

渲染后的效果如下:

This is the first line of the paragraph.

This is the second line with an indent.

This is the third line with an indent.

需要注意的是,Markdown中的缩进仅适用于段落文本,如果需要缩进行内元素(如代码块),则需要使用不同的方法,例如使用t或者<pre><code>

首行缩进通过在段落的首行添加至少一个空格实现。

保持每行缩进一致,以确保格式正确。

设置首行缩进
(图片来源网络,侵删)

  • 评论列表 (0)

留言评论