Hand-drawn cheat sheet with Markdown symbols beside a laptop showing the same lines as a heading, bold text, a bullet and a ticked checkbox, with a yellow pencil.

Markdown Cheat Sheet

Markdown formats plain text with a few typed symbols, such as # for a heading and two asterisks on each side of words for bold. This Markdown cheat sheet puts each piece of syntax beside the result it produces, from headings, lists and links to tables, checkboxes, line breaks, code blocks, footnotes and callouts, for anyone who writes notes, README files or documentation in plain text. You will also see where standard Markdown, GitHub and note apps such as Obsidian disagree, and how to repair Markdown that shows its symbols instead of formatting. For a paper copy beside your keyboard, print the one-page Markdown cheat sheet PDF.

By Parsnip · Published · Updated

Short answer

Markdown formats plain text with a handful of symbols: # begins a heading, two asterisks around a word make it bold, one makes it italic, a dash begins a list, [text](address) creates a link and ![description](file) embeds an image. A blank line separates paragraphs. Tables, checkboxes and strikethrough are GitHub Flavored Markdown (GFM) additions that most apps now support.

Markdown syntax with examples

Every row pairs the Markdown you type with the result it produces. The screenshot shows the same Markdown examples in one real note: the raw text on the left and the formatted note on the right.

A Parsnip note shown twice side by side: its Markdown source on the left, and on the right the formatted note with its heading, bold, italic, strikethrough and highlighted text, checkboxes, a callout, a table, a link to another note and a footnote, each labelled.
One note in Parsnip, as Markdown on the left and formatted on the right.

Basic syntax

These work in CommonMark, on GitHub and in almost every Markdown app.

ElementYou typeYou get
Headings
# Heading 1
## Heading 2
### Heading 3

Heading 1

Heading 2

Heading 3

Bold
**bold text**
bold text
Italic
*italic text*
italic text
Bold and italic
***bold and italic***
bold and italic
Paragraphs
First paragraph.

Second paragraph.

First paragraph.

Second paragraph.

Line break
First line\
Second line

First line
Second line

Bulleted list
- Milk
- Eggs
  - Free range
  • Milk
  • Eggs
    • Free range
Numbered list
1. Draft
2. Edit
3. Publish
  1. Draft
  2. Edit
  3. Publish
Block quote
> Quoted text
Quoted text
Inline code
Run `npm install`

Run npm install

Code block
```js
const total = 3;
```
const total = 3;
Link
[Parsnip](https://parsnip.so)
Image
![A red bike](bike.png)
bike.png, described as “A red bike”
Horizontal rule
---

Escaped character
\*not italic\*

*not italic*

Extended syntax

GitHub supports all of these, and most other apps do too.

ElementYou typeYou get
Table
| Item | Qty |
| :--- | ---: |
| Pens | 12 |
ItemQty
Pens12
Checkbox (task list)
- [x] Outline
- [ ] Draft
  • Outline
  • Draft
Strikethrough
~~old price~~
old price
Automatic link
https://parsnip.so
Footnote
A claim.[^1]

[^1]: The source.

A claim.1

1 The source.

Alert (callout)
> [!TIP]
> Save a copy first.

Tip

Save a copy first.

Note-app syntax

Obsidian made these popular. Parsnip reads the same syntax, and other apps show it as plain text. Obsidian hides a %% comment in its reading view; Parsnip shows it faded while you write and leaves it out of exports.

ElementYou typeYou get
Highlight
==highlighted text==
highlighted text
Link to a note
[[Trip plan]]
Trip plan
Link with other text
[[Trip plan|the plan]]
the plan
Link to a heading
[[Trip plan#Budget]]
Trip plan#Budget
Image with a width
![[map.png|300]]
map.png, 300 pixels wide
Callout with a title
> [!warning] Check dates
> Before you book.

Check dates

Before you book.

Tag
#draft
#draft
Comment
Shown %%hidden note%%

Shown hidden note

Markdown versions: CommonMark, GitHub and note apps

Where Markdown comes from

John Gruber released Markdown in 2004 so people could write for the web in plain text that stays readable before any formatting is applied (Daring Fireball). A Markdown file is ordinary text, usually saved with the .md extension, and any text editor on any device will open one.

CommonMark and GitHub Flavored Markdown

Gruber’s original description left some details open, and apps began to disagree about them. CommonMark pinned those details down in a precise specification that most apps now follow. GitHub Flavored Markdown builds on CommonMark with tables, checkboxes, strikethrough and automatic links, and GitHub adds footnotes and alerts on top of that. Everything in the first two tables above works on GitHub.

Note-app syntax

Note apps such as Obsidian layer on their own syntax for connecting notes: [[wikilinks]], ==highlights==, callouts with custom titles, %%comments%% and #tags. Parsnip reads the same syntax, and an Obsidian vault opens as it is. Paste that text into GitHub or an app without note syntax and it appears as plain text.

Headings, bold, italic and paragraphs

Headings

Type one to six # signs and a space at the start of a line. A single # is the page title, ## marks a section and ### a subsection. The space matters: without it, CommonMark renders the line as ordinary text and note apps read #word as a tag. For a top-level heading you can also underline the text with ===, or with --- for a second-level heading.

## Packing list

Bold and italic

Markdown bold takes two asterisks on each side of the words, italic takes one, and three gives you both at once. Underscores do the same job, though CommonMark ignores them inside a word, so reach for asterisks when you bold part of a word. Keep the asterisks pressed against the words with no gap: ** bold** typed with a space inside stays exactly as typed.

Leave **Friday at 8**, back *Sunday night*.

Strikethrough and highlight

Two tildes on each side of a word give you strikethrough, as on GitHub. Two equals signs on each side add a highlight in Obsidian and Parsnip.

Bring the ~~tent~~ ==cabin key==.

Paragraphs

Separate paragraphs with a blank line. Do not indent the first line: four spaces at the start of a line turn it into a code block under CommonMark.

Markdown line breaks and new lines

Why your new line disappears

Pressing Enter once does not create a new line in standard Markdown. The CommonMark specification calls that a soft line break, and most sites render it as a space, so your two lines run together. A blank line starts a new paragraph.

Three ways to force a Markdown line break

To break a line without leaving the paragraph, end the line with one of the three options below. GitHub accepts all three in a Markdown file. In the table, ·· stands for two spaces.

End the line withExampleGood to know
A backslashFirst line\Visible, so it survives editing
Two spacesFirst line··Invisible, and editors may trim them
An HTML <br> tagFirst line<br>Only where HTML is allowed

Where one Enter is enough

A few places respect every line exactly as typed. GitHub does this in comments on issues and pull requests. Obsidian does too, unless you switch on Strict line breaks in its settings. A README file or a website generated from Markdown usually joins the lines instead. When you cannot predict where the text will be read, the backslash is the safest Markdown new line.

Extra blank lines and spaces

A run of blank lines counts as one paragraph break, and a run of spaces between words collapses to a single space. When you want more room, add another paragraph or a horizontal rule instead of stacking empty lines.

Lists and checkboxes

Bulleted lists

Start each item with -, * or + followed by a space. Pick one marker and keep it for the whole list: CommonMark starts a fresh list when the marker changes.

- Passport - Charger

Numbered lists

Start each item with a number, a period and a space. The opening number sets where counting starts. CommonMark disregards every number after that: typing 1. 1. 1. still produces 1, 2, 3. That saves renumbering when you rearrange items.

Nested lists

Indent a sub-item until its marker sits beneath the text of the item above it: two spaces under a dash, three under a 1. marker. Four spaces also work in most apps. A paragraph inside a list item needs the same indent.

1. Pack - Passport - Charger

Checkboxes (task lists)

A Markdown checkbox is a list item with brackets after the marker: [ ] for an empty box and [x] for a ticked one, with a space inside the empty brackets. GitHub lets readers tick these boxes directly in issues and pull requests.

- [x] Book the cabin - [ ] Buy ferry tickets

Code and code blocks

Code inside a sentence

Wrap a command or a fragment of code in backticks to set it in a monospaced font with formatting switched off. Asterisks and underscores inside stay as typed. To show a backtick itself, wrap the fragment in two backticks with a space inside each one.

Code blocks

A Markdown code block opens with three backticks on the line above the code and closes with three on the line below. Name the language right after the opening fence, such as js or python, and apps with syntax highlighting will color the code. Three tildes do the same job. Code indented by four spaces also counts as a code block in CommonMark, though a fence is easier to spot and to copy.

```python print("Hello") ```

Tables

Build a table

A Markdown table starts with a header row that separates columns with a pipe |, then a separator row of hyphens, then one line per row of data. The GFM specification asks for only one hyphen per column, but three is the common habit. The pipes do not need to line up.

| Day | Plan | | --- | --- | | Fri | Drive | | Sat | Hike |

Align columns

Colons in the separator row set alignment: :--- aligns a column left, :---: centers it and ---: aligns it right. Right-align number columns so the digits line up.

| Item | Qty | | :--- | ---: |

What tables can’t do

A Markdown table cannot merge cells, and every row must fit on a single line. Bold, links and inline code all work inside a cell. To print a pipe inside a cell, type \|.

Quotes, callouts and footnotes

Block quotes

Start each quoted line with > and a space. A line holding only > keeps two paragraphs inside one quote, and >> nests a quote within a quote.

> First paragraph. > > Second paragraph.

Callouts and alerts

A callout is a block quote whose first line carries a type in brackets. GitHub calls these alerts and supports five types: NOTE, TIP, IMPORTANT, WARNING and CAUTION. Obsidian supports more types, accepts your own title after the type, and folds a callout when you add + or - after the brackets. In apps without callout support, the text shows as an ordinary quote.

> [!NOTE] > Useful even when skimming.

Footnotes

Type [^1] where the footnote marker belongs, then write the footnote itself on its own line starting with [^1]: and a space, anywhere in the file. The label can be a word such as [^source]. GitHub numbers footnotes in order and collects them at the bottom of the page.

A claim.[^source] [^source]: Where it comes from.

Horizontal rules, escapes and comments

Horizontal rules

A horizontal rule is three or more hyphens, asterisks or underscores on a line of their own. Leave a blank line above it: --- placed directly under a line of text turns that text into a heading.

***

Escape a symbol to show it as itself

Put a backslash in front of the character Markdown would read as formatting. The characters you can escape this way include \ ` * _ { } [ ] ( ) # + - . ! and |.

\#1 on the list

Comments

Text between <!-- and --> is an HTML comment. GitHub and most sites hide it. Obsidian hides text wrapped in two pairs of percent signs when it shows the formatted note.

%%Ask Sam about the date%%

What Markdown doesn’t do

Standard Markdown has no syntax for underline, text color, font size or centered text. Some apps accept HTML for these jobs, such as <ins> for underline on GitHub. Math, subscript, superscript and definition lists are extensions that only certain apps add. Check your app’s help before relying on them.

Fix Markdown that won’t format

A heading shows the # signs

Add a space after the last #. In note apps, #word without a space is a tag.

Bold or italic shows the asterisks

Remove any spaces just inside the asterisks. Then check that every opening pair meets a closing pair within the same paragraph.

A list, quote or table runs into the text above

Insert a blank line before it. CommonMark allows a bulleted list to follow a paragraph directly, and a numbered list only when it begins at 1, but many apps want the blank line regardless.

A table shows as plain text

Add the separator row of hyphens beneath the header. Then confirm each row has the same number of columns.

Everything below a code block looks like code

Close the fence with three backticks on a line of their own.

A line of text became a heading

Put a blank line between the text and the horizontal rule. A row of hyphens directly under text converts that text into a heading.

Write Markdown in Parsnip

Every Parsnip note is a plain .md file in a folder you choose. Notes open in Live Preview: formatting appears as you type, and the line you are editing shows marks such as the asterisks around bold text so you can adjust them. The walkthrough writes a short note with a heading, bold text, a checklist and a link to another note.

Type Markdown in a Parsnip note: a heading, bold and italic text, a checklist and a link to another note, then tick a checkbox.
  1. Open a project and create a note with File > New Note… (Cmd+N on Mac, Ctrl+N on Windows or Linux).
  2. Type Markdown as you would anywhere. Live Preview styles each line as you type and hides marks such as the asterisks around bold text once you move to another line. Move back to a line to see and edit them, or use Source to see every character, including checkbox marks.
  3. Or use the toolbar above the note, or the shortcuts: Cmd+B for bold, Cmd+I for italic, Cmd+E for inline code and Cmd+Shift+9 for a checklist (Ctrl instead of Cmd on Windows and Linux).
  4. Type [[ and pick a note from the list to link to it. Type /t to insert a table you can fill in cell by cell.
  5. Click a checkbox to tick it. Parsnip writes the x into the file for you.
  6. To see the plain Markdown, turn on Source button in the toolbar in Settings > Appearance > Page, then click Source in the note’s toolbar. Or press Cmd+P (Ctrl+P on Windows and Linux) and type Toggle Live Preview.

Checked in Parsnip 1.2.3 on macOS on November 27, 2026, with every example on this page typed into a note and viewed in Live Preview and Source.

What Parsnip shows

Formatted in Live Preview

Headings, bold, italic, strikethrough, highlights, inline code, lists, checkboxes, quotes, callouts and alerts, links, links between notes, images, footnotes, tables, code blocks, horizontal rules and tags. Lists keep their - and 1. markers, and comments are faded rather than hidden. Exports and word counts leave comments out.

Shown as you typed it

HTML tags such as <u> and <br>, math, subscript, superscript and definition lists stay as plain text, and escaping backslashes stay visible. Code indented by four spaces isn’t styled, so use a fence for code.

Line breaks

Live Preview shows every line where you typed it, even without a backslash or two spaces. Exports follow standard Markdown, so end a line with a backslash to keep the break in a PDF, Word or HTML file.

Your file stays plain Markdown

Live Preview changes only how the note looks. Source shows the Markdown Parsnip saves, and any text editor can open the file. How callouts, highlights and links between notes look depends on the app. If you share the .md file, any %% comments are still in it.

Parsnip questions

Can I open notes I wrote in Obsidian or another Markdown app?

Yes. Open the folder as a project. Links between notes, callouts, highlights, comments and tags work as they are. The Obsidian tutorial covers the details.

Can I paste formatted text from a web page or a document?

Yes. Choose Paste Rich Text from the note’s right-click menu and Parsnip turns the formatting into Markdown. For a Word file, use Import Document… on a folder’s right-click menu in Files.

Check your Markdown before you share it

Work through these checks, then preview the text where your readers will see it.

  • Blank lines separate your paragraphs, and one sits before every list, quote, table and code block.
  • Every heading #, list marker and > is followed by a space.
  • Any line that must break inside a paragraph ends with a backslash.
  • Each table has its separator row of hyphens, and every code fence is closed.
  • Every image has alt text and a path that resolves from the note’s folder.

Common questions

What is Markdown used for?

Writing formatted text as plain text: notes, README files, documentation, blog posts, chat messages and comments on GitHub. A single file stays readable in any text editor and renders formatted in apps that understand Markdown.

How do I make a new line in Markdown?

End the line with a backslash or with two spaces. One Enter usually joins the lines, while a blank line starts a new paragraph. See line breaks.

How do I add a checkbox in Markdown?

Begin a list item with - [ ] for an empty box or - [x] for a ticked one. Checkboxes come from GitHub Flavored Markdown, and most apps support them.

How do I make a table in Markdown?

Write a header row with pipes between the columns, add a separator row of hyphens, then write one line per row. Tables are a GitHub Flavored Markdown extension, and the tables section shows a working example.

How do I underline text in Markdown?

Markdown has no underline syntax. Where HTML is allowed, wrap the words in <u> and </u>, or <ins> and </ins> on GitHub. Everywhere else, reach for bold or italic.

Is Markdown the same in every app?

The core syntax is. Tables, checkboxes and footnotes work in most apps, while wikilinks, highlights and callouts work only in note apps such as Obsidian and Parsnip.

Can I open my existing Markdown files in Parsnip?

Yes. Parsnip keeps notes as plain .md files in a folder you choose and reads Obsidian syntax, so an existing folder of notes or an Obsidian vault opens as it is.

Markdown Cheat Sheet

Markdown cheat sheet: basic, extended and note-app syntax, each with what you type beside the result, then line breaks, table alignment, callouts, a checklist and fixes for Markdown that won’t format.

Try it in Parsnip

Download Parsnip

Keep writing

References