como-usar-negrita-cursiva-en-markdown

How to use Bold and Italic in Markdown

  • 2 min

Markdown offers a simple syntax for applying bold and italic. Let’s see how to use each of these styles.

Bold

To make text bold, use two asterisks (**) or two underscores (__) around the text you want to highlight.

**This text is bold**
__This text is also bold__
Copied!

This renders as:

This text is bold
This text is also bold

There cannot be a space between the ** or __ and the text. It has to be touching directly. That is, the following syntax will not work for you.

** This text is NOT bold**
__ This text is NOT bold either__
Copied!

This is a common mistake that can drive you crazy, so remember not to put the whitespace.

Italic

To make text italic, use one asterisk (*) or one underscore (_) around the text you want to highlight.

*This text is italic*
_Esthis text is also italic_
Copied!

This renders as:

This text is italic
This text is also italic

Bold and Italic Combined

You can combine bold and italic by using three asterisks (***) or three underscores (___) around the text.

***This text is bold and italic***
___This text is also bold and italic___
Copied!

This renders as:

This text is bold and italic
This text is also bold and italic

Best Practices Tips

Syntax Consistency: Although Markdown allows us to use several ways to apply emphasis, it is recommended that you choose one of them and use it consistently in your document (Let’s not mix them).

For example, I like ** for bold and _ for italic. That way I recognize them easily. But use your own criteria.

Highlight Key Information: Use bold to highlight key information and important terms, and italic for titles of works, technical terms, or for additional emphasis.

Avoid Excess: Don’t overuse bold and italic. Highlighting too many elements can reduce the effect, and even make the text more difficult to read.