MDUtil

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.

Markdown
*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.

Markdown
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.

Markdown
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.

Markdown
re*structure*d

re_structure_d

Result

restructured

re_structure_d

Bold and italic together

Three asterisks give bold italic text. Nesting the two markers shows clearly which pair closes where.

Markdown
***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.

Markdown
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.

Markdown
\*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.

AppSupportNotes
GitHub / GitLabSupported*text* and _text_ both work. Italics inside a word need asterisks.
DiscordSupportedBoth markers work, and ***text*** gives bold italic.
SlackDiffersSlack uses underscores for italics: _text_. Single asterisks make text bold.
ObsidianSupportedBoth markers, including italics inside a word with asterisks.
NotionSupportedTyping *text* or _text_ turns it italic as you type.
RedditSupportedBoth markers work in the Markdown editor.

Questions and answers

What is the difference between * and _ for italics?

For whole words there is none: both produce <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?

Use three asterisks on each side, ***text***, or nest the markers, as in **_text_**.

Why are my italics not working?

Look for a space between the marker and the text (* 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?

Yes, with asterisks: 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?

Wrap it in underscores: _text_. Slack reads single asterisks as bold, the reverse of standard Markdown.

How do I italicize text in Discord?

Use *text* or _text_. Three asterisks, ***text***, make it bold and italic.

Does Markdown italic produce <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?

Put a backslash before it: \*text\* displays as *text*. For code and file names, backticks are simpler, since nothing inside them is formatted.