Bold
Wrap text in **double asterisks** or __double underscores__. It renders as <strong>.
Italic
Wrap text in *single asterisks* or _single underscores_. It renders as <em>.
Bold and italic together
Use three asterisks ***like this***, or nest the two styles: **_like this_**.
Asterisks or underscores?
Prefer asterisks. CommonMark ignores underscores inside words so that names like snake_case_variable are not italicised by accident, which means un__believ__able stays literal while un**believ**able works. Style guides such as the Google developer documentation style guide and markdownlint rule MD050 recommend one consistent style.
No space inside the markers
** bold ** with spaces next to the asterisks is not bold. The opening marker must be followed by a non-space and the closing marker preceded by one.
Showing a literal asterisk
Escape it with a backslash: \*not italic\*.