Markdown 教程 - 基本语法 - 强调语法
通过将文本设置为粗体或斜体来强调其重要性。
粗体Bold
要加粗文本,请在单词或短语的前后各添加两个星号asterisks或下划线underscores。如需加粗一个单词或短语的中间部分用以表示强调的话,请在要加粗部分的两侧各添加两个星号asterisks。
I just love **bold text**.
I just love __bold text__.
Love**is**bold
I just love <strong>bold text</strong>.
I just love <strong>bold text</strong>.
Love<strong>is</strong>bold
渲染效果:
I just love bold text.
I just love bold text.
Loveisbold
粗体
Bold用法最佳实践:
Markdown 应用程序在如何处理单词或短语中间的下划线上并不一致。为兼容考虑,在单词或短语中间部分加粗的话,请使用星号asterisks。
斜体Italic
要用斜体显示文本,请在单词或短语前后添加一个星号asterisk或下划线underscore。要斜体突出单词的中间部分,请在字母前后各添加一个星号,中间不要带空格。
Italicized text is the *cat's meow*.
Italicized text is the _cat's meow_.
A*cat*meow
Italicized text is the <em>cat's meow</em>.
Italicized text is the <em>cat's meow</em>.
A<em>cat</em>meow
渲染效果:
Italicized text is the cat's meow.
Italicized text is the cat's meow.
Acatmeow
斜体
Italic用法的最佳实践:
要同时用粗体和斜体突出显示文本,请在单词或短语的前后各添加三个星号或下划线。要加粗并用斜体显示单词或短语的中间部分,请在要突出显示的部分前后各添加三个星号,中间不要带空格。
粗体Bold和斜体Italic
要同时用粗体和斜体突出显示文本,请在单词或短语的前后各添加三个星号或下划线。要加粗并用斜体显示单词或短语的中间部分,请在要突出显示的部分前后各添加三个星号,中间不要带空格。
This text is ***really important***.
This text is ___really important___.
This text is __*really important*__.
This text is **_really important_**.
This is really***very***important text.
This text is <strong><em>really important</em></strong>.
This text is <strong><em>really important</em></strong>.
This text is <strong><em>really important</em></strong>.
This text is <strong><em>really important</em></strong>.
This is really<strong><em>very</em></strong>important text.
渲染效果:
This text is really important.
This text is really important.
This text is really important.
This text is really important.
This is reallyveryimportant text.
粗体
Bold和斜体Italic用法的最佳实践:
Markdown 应用程序在处理单词或短语中间添加的下划线上并不一致。为了实现兼容性,请使用星号将单词或短语的中间部分加粗并以斜体显示,以示重要。