NanoFile

Markdown bold

Wrap text in two asterisks to make it bold. Two underscores do the same thing, and both are equally correct, though asterisks are the safer habit.

Bold
**bold text**

__also bold__

bold text

also bold

Bold and italic together
***bold and italic***

**bold with _italic_ inside**

bold and italic

bold with italic inside

What usually goes wrong

  • No spaces inside the markers. ** bold ** renders as literal asterisks, because a marker followed by a space is not treated as an opener.
  • Underscores do not work inside a word. snake__case__here stays as it is, on purpose, so that code-like words survive. Asterisks do work there.
  • Bold in a heading is redundant on nearly every platform: headings are already bold.

Where it behaves differently

PlatformBehaviour
GitHub, Obsidian, NotionBoth ** and __ work everywhere.
DiscordBoth work. ***text*** gives bold italic.
SlackSlack is different: bold is a single asterisk, *bold*.

Questions

Asterisks or underscores for bold?

Asterisks. They behave the same in every renderer and they work inside words, where underscores deliberately do not.

Related