Italic Text in Markdown
Wrap text in one asterisk on each side to make it italic: *italic*. This guide covers asterisks and underscores, italics inside a word, bold italic, and the mistakes that leave the symbols showing.
Quick answer
How do you italicize text in Markdown?
Put one asterisk on each side of the text: *italic text*. One underscore, _italic text_, does the same, and both become an <em> element in HTML. Asterisks are the safer choice because they also work inside a word, where underscores do not.
*This text is italic*
_This text is also italic_Result
This text is italic
This text is also italic
Italic syntax and examples
The two markers produce the same HTML and differ only inside words. Chat apps are where italics change: Slack reads single asterisks as bold.
Single asterisks
Works in CommonMark, GitHub, GitLab, Discord, Reddit, Obsidian, Notion and static site generators such as Hugo and Jekyll.
The deadline is *not* negotiable.Result
The deadline is not negotiable.
Single underscores
The same result for whole words. Slack also uses underscores for italics, so text written this way reads the same there.
I finally read _The Great Gatsby_ last week.Result
I finally read The Great Gatsby last week.
Italics inside a word
Only asterisks work in the middle of a word, so names like file_name_v2 keep their underscores.
re*structure*d
re_structure_dResult
restructured
re_structure_d
Bold and italic together
Three asterisks give bold italic text. Nesting the two markers shows clearly which pair closes where.
***Bold and italic***
*Italic with **bold** inside*Result
Bold and italic
Italic with bold inside
When italics don't work
The marker must touch the text. With a space inside it, or with no closing marker, the asterisk stays visible.
This is * not italic * at all.
This *never closes.
This is *italic*.Result
This is * not italic * at all.
This *never closes.
This is italic.
Showing asterisks and underscores
A backslash before the symbol shows it as typed. For code and file names, backticks are simpler, because nothing inside them is formatted.
\*not italic\*
`snake_case_name`Result
*not italic*
snake_case_name
Italics in popular apps
Both markers work almost everywhere. Slack is the notable exception.
| App | Support | Notes |
|---|---|---|
| GitHub / GitLab | Supported | *text* and _text_ both work. Italics inside a word need asterisks. |
| Discord | Supported | Both markers work, and ***text*** gives bold italic. |
| Slack | Differs | Slack uses underscores for italics: _text_. Single asterisks make text bold. |
| Obsidian | Supported | Both markers, including italics inside a word with asterisks. |
| Notion | Supported | Typing *text* or _text_ turns it italic as you type. |
| Supported | Both markers work in the Markdown editor. |
Questions and answers
What is the difference between * and _ for italics?
* and _ for italics?<em>. Inside a word only asterisks work, so re*structure*d italicizes the middle while re_structure_d stays as typed. Slack is the other difference: there *text* is bold and _text_ is italic.How do I make text bold and italic at the same time?
***text***, or nest the markers, as in **_text_**.Why are my italics not working?
* text *), a marker that is never closed, an underscore in the middle of a word, or text in a code block or backticks, where nothing is formatted. At the start of a line, * followed by a space starts a bullet list instead.Can I italicize part of a word?
re*structure*d. Underscores inside a word are shown as typed, so names like snake_case_name keep their underscores.How do I italicize text in Slack?
_text_. Slack reads single asterisks as bold, the reverse of standard Markdown.How do I italicize text in Discord?
*text* or _text_. Three asterisks, ***text***, make it bold and italic.Does Markdown italic produce <em> or <i>?
<em> or <i>?<em>, the element for emphasis. If you need <i> instead, write the tag yourself; most Markdown renderers accept inline HTML.How do I show an asterisk or underscore without italics?
\*text\* displays as *text*. For code and file names, backticks are simpler, since nothing inside them is formatted.