Bold, italic and strikethrough
Wrap text in two asterisks for bold, one asterisk for italic, and two tildes for strikethrough. Bold and italic are part of CommonMark, so every Markdown app supports them. Strikethrough is a GitHub Flavored Markdown (GFM) extension that most current editors also support.
**bold**, *italic*, ***bold italic*** and ~~strikethrough~~
| Style | Syntax | Spec |
|---|---|---|
| Bold | **text** or __text__ |
CommonMark |
| Italic | *text* or _text_ |
CommonMark |
| Bold and italic | ***text*** |
CommonMark |
| Strikethrough | ~~text~~ |
GFM extension |
| Inline code | `text` |
CommonMark |
Should you use asterisks or underscores?
Both work, but asterisks behave more predictably. CommonMark does not treat underscores inside a word as emphasis, so snake_case_name stays plain text. Asterisks do work inside a word: un*believ*able italicizes the middle part.
A practical rule: use asterisks everywhere, and you never have to think about where a word starts or ends. Mixing is allowed, as in **bold with _italic_ inside**, as long as each pair opens and closes with the same character.
Why is my bold text not working?
The most common cause is a space just inside the markers. ** bold** stays literal because CommonMark only opens emphasis when the marker is not followed by whitespace, and only closes it when the marker is not preceded by whitespace. Other causes:
- The counts do not match, as in
**bold*. - The characters do not match, as in
**bold__. - The text sits inside a code span or code block, where Markdown is not interpreted.
- Underscores are used inside a word, which CommonMark ignores.
How does strikethrough work?
Wrap the text in two tildes: ~~old price~~. The GFM spec accepts one or two tildes on each side, and three or more tildes do not create a strikethrough (GFM spec 0.29, checked November 2026). GitHub accepts ~text~ too, but some converters read single tildes as subscript, so two tildes are the safer form.
A renderer that follows only CommonMark shows the tildes as typed. If strikethrough appears as ~~text~~ on a page, the tool rendering it does not support the GFM extension.
How do you underline text in Markdown?
Neither CommonMark nor GFM has underline syntax, and _text_ is italic, not underlined. Where the renderer allows inline HTML, use <ins>text</ins>, which GitHub lists for underline, or <u>text</u>.
Underlined text is easily mistaken for a link on screen, so italic or bold is usually the clearer choice.
What about highlight, subscript and superscript?
None of them is in CommonMark or GFM. Some apps read ==text== as highlight, but other apps show the equals signs as typed. For subscript and superscript, use HTML: H<sub>2</sub>O and x<sup>2</sup>. GitHub renders both tags (GitHub Docs, checked November 2026).
How do you show a literal asterisk or tilde?
Put a backslash in front of it: \*not italic\* or \~\~not struck\~\~. The escape characters page lists every character you can escape this way.
Text formatting in Noteline
Noteline renders bold and italic as you type and hides the markers until the cursor reaches them. Strikethrough stays as typed in the editor, so a tilde in a range such as 7~9 never strikes out a line by accident, and it appears struck through in Word, PDF and HTML exports. Cmd+B, Cmd+I and Cmd+Shift+X on a Mac (Ctrl+B, Ctrl+I and Ctrl+Shift+X on Windows and Linux) add **, * and ~~ around the selection, and Cmd+E (Ctrl+E) adds backticks for inline code. Pasting formatted text from a web page, a document or an AI chat into an empty note converts the bold and italic to these Markdown marks.
Common questions
How do you make text bold and italic at once?
Use three asterisks, ***text***, or nest the two styles, **_text_**. Both render the same in CommonMark.
Does Markdown support colored text?
No. Color needs HTML with a style attribute, and many renderers, including GitHub, remove style attributes. Bold or a blockquote is the portable way to make text stand out.
Why does my strikethrough show the tildes?
Either the renderer follows CommonMark only, or there is a space just inside the tildes, as in ~~ text~~. Remove the space or open the file in a GFM-aware app.