Markdown 強調文法#
テキストを太字または斜体に設定することで、その重要性を強調します。
太字(Bold)#
テキストを太字にするには、単語やフレーズの前後にそれぞれ 2 つのアスタリスク(asterisks)またはアンダースコア(underscores)を追加します。強調を示すために単語やフレーズの中間部分を太字にするには、太字にしたい部分の両側にそれぞれ 2 つのアスタリスク(asterisks)を追加します。
Markdown 文法 | HTML | プレビュー効果 |
---|---|---|
I just love **bold text**. | I just love <strong>bold text</strong>. | I just love bold text. |
I just love __bold text__. | I just love <strong>bold text</strong>. | I just love bold text. |
Love**is**bold | Love<strong>is</strong>bold | Love is bold |
太字(Bold)用法のベストプラクティス#
Markdown アプリケーションは、単語やフレーズの中間のアンダースコアの扱いが一貫していません。互換性を考慮して、単語やフレーズの中間部分を太字にする場合は、アスタリスク(asterisks)を使用してください。
✅ これを行う | ❌ これを行わない |
---|---|
Love**is**bold | Love__is__bold |
斜体(Italic)#
テキストを斜体で表示するには、単語やフレーズの前後にそれぞれ 1 つのアスタリスク(asterisk)またはアンダースコア(underscore)を追加します。単語の中間部分を斜体で強調するには、文字の前後にそれぞれ 1 つのアスタリスクを追加し、中間にスペースを入れないでください。
Markdown 文法 | HTML | プレビュー効果 |
---|---|---|
This text is ***really important***. | This text is <strong><em>really important</em></strong>. | This text is really important. |
This text is ___really important___. | This text is <strong><em>really important</em></strong>. | This text is really important. |
This text is __*really important*__. | This text is <strong><em>really important</em></strong>. | This text is really important. |
This text is **_really important_**. | This text is <strong><em>really important</em></strong>. | This text is really important. |
This is really***very***important text. | This is really<strong><em>very</em></strong>important text. | This is really very important text. |
太字(Bold)と斜体(Italic)用法のベストプラクティス#
Markdown アプリケーションは、単語やフレーズの中間に追加されたアンダースコアの扱いが一貫していません。互換性を実現するために、アスタリスクを使用して単語やフレーズの中間部分を太字かつ斜体で表示し、重要性を示してください。
✅ これを行う | ❌ これを行わない |
---|---|
This is really***very***important text. | This is really___very___important text. |