Skip to content

Markdown Emphasis

TL;DR

What it is

Emphasis is inline syntax that adds stress or weight to words and phrases. In CommonMark, italic and bold are part of the core inline grammar, not an extension.

Why it matters

Emphasis improves scanning and meaning with very little syntax. It is one of the first features people reach for, so learning the exact rules early prevents a lot of "why did this not render?" moments later.

Syntax

*italic*
_italic_

**bold**
__bold__

**bold with _nested italic_**

Minimal example

Source

This is *important*.

This is **very important**.

What it does

The first sentence renders one emphasized word in italic. The second renders one emphasized phrase in bold.

More examples

Example 1: Nested emphasis

**This text is _extremely_ important.**

What it does

This renders bold text with one italic word nested inside it.

Example 2: Bold plus italic

***Everything here is emphasized.***

What it does

This renders text with both bold and italic styling.

Example 3: Emphasis does not override inline code

Use `git status` before you commit.

What it does

Inline code stays code. Markdown does not turn characters inside a code span into emphasis.

Common pitfalls

Portability and platform notes

FAQ

Should I use * or _ for italic?

Both are valid. Pick one style and stay consistent. When debugging tricky cases, asterisks are often easier to reason about in ordinary prose.

Can I mix bold and italic?

Yes. Nested emphasis is valid, and triple delimiters can also produce bold plus italic when written correctly.

Why did my text not render as bold?

The most common reasons are unmatched delimiters, surrounding punctuation or characters that change delimiter behavior, or syntax that is already inside code, a link, an image label, or HTML.

Practice

Related topics

References