文章

Markdown 段落语法

Markdown 段落语法,如何创建段落以及最佳实践

Markdown 段落语法

原文位置: https://markdown.com.cn/basic-syntax/paragraphs.html

Markdown 段落

要创建段落,请使用空白行将一行或多行文本进行分隔。

Markdown语法 HTML 预览效果
I really like using Markdown. <p>I really like using Markdown.</p> <p>I really like using Markdown.</p>
I think I'll use it to format all of my documents from now on. <p>I think I'll use it to format all of my documents from now on.</p> <p>I think I’ll use it to format all of my documents from now on.</p>

段落(Paragraph)用法的最佳实践

不要用空格(spaces)或制表符( tabs)缩进段落。

✅ Do this ❌ Don’t do this
Don't put tabs or spaces in front of your paragraphs. ` This can result in unexpected formatting problems.`
Keep lines left-aligned like this. ` Don’t add tabs or spaces in front of paragraphs.`
本文由作者按照 CC BY 4.0 进行授权