Markdown 强调语法
本文最后更新于158 天前,其中的信息可能已经过时,如有错误请发送邮件到jimmy6646az@outlook.com

一、强调语法

通过将文本设置为粗体或斜体来强调其重要性。

二、粗体(Bold)

要加粗文本,请在单词或短语的前后各添加两个星号(asterisks)或下划线(underscores)。如需加粗一个单词或短语的中间部分用以表示强调的话,请在要加粗部分的两侧各添加两个星号(asterisks)。

Markdown语法HTML
I just love **bold text**.I just love <strong>bold text</strong>.
I just love __bold text__.I just love <strong>bold text</strong>.
Love**is**boldLove<strong>is</strong>bold

Markdown 强调语法粗体的预览效果:

三、粗体(Bold)用法最佳实践

Markdown 应用程序在如何处理单词或短语中间的下划线上并不一致。为兼容考虑,在单词或短语中间部分加粗的话,请使用星号(asterisks)。

✅  Do this❌  Don’t do this
Love**is**boldLove__is__bold

四、斜体(Italic)

要用斜体显示文本,请在单词或短语前后添加一个星号(asterisk)或下划线(underscore)。要斜体突出单词的中间部分,请在字母前后各添加一个星号,中间不要带空格。

Markdown语法HTML
Italicized text is the *cat's meow*.Italicized text is the <em>cat's meow</em>.
Italicized text is the _cat's meow_.Italicized text is the <em>cat's meow</em>.
A*cat*meowA<em>cat</em>meow

Markdown 强调语法斜体的预览效果:

五、斜体(Italic)用法的最佳实践

要同时用粗体和斜体突出显示文本,请在单词或短语的前后各添加三个星号或下划线。要加粗并用斜体显示单词或短语的中间部分,请在要突出显示的部分前后各添加三个星号,中间不要带空格。

✅  Do this❌  Don’t do this
A*cat*meowA_cat_meow

六、粗体(Bold)和斜体(Italic)

要同时用粗体和斜体突出显示文本,请在单词或短语的前后各添加三个星号或下划线。要加粗并用斜体显示单词或短语的中间部分,请在要突出显示的部分前后各添加三个星号,中间不要带空格。

Markdown语法HTML
This text is ***really important***.This text is <strong><em>really important</em></strong>.
This text is ___really important___.This text is <strong><em>really important</em></strong>.
This text is __*really important*__.This text is <strong><em>really important</em></strong>.
This text is **_really important_**.This text is <strong><em>really important</em></strong>.
This is really***very***important text.This is really<strong><em>very</em></strong>important text.

Markdown 强调语法粗体和斜体的预览效果:

七、粗体(Bold)和斜体(Italic)用法的最佳实践

Markdown 应用程序在处理单词或短语中间添加的下划线上并不一致。为了实现兼容性,请使用星号将单词或短语的中间部分加粗并以斜体显示,以示重要。

✅  Do this❌  Don’t do this
This is really***very***important text.This is really___very___important text.
本文参考文献

Markdown 强调语法 | Markdown 教程

上一篇
下一篇