A Markdown cheat sheet for the Mac

Checked November 2026 against the CommonMark 0.31.2 spec, the GitHub Flavored Markdown spec and GitHub's writing docs. Coffee isn't affiliated with any of them.

Markdown has a small standard core, written down as CommonMark, and a set of common additions, the best known being GitHub Flavored Markdown, or GFM. The first table below should work almost anywhere. The second depends on the app, so check before you rely on it.

Nothing here is specific to the Mac until the shortcuts, which are Coffee's and work only in Coffee.

Standard Markdown

All of this is defined by CommonMark.

WhatWrite
Headings# Title down to ###### Small title
Underlined headingTitle with a line of === or --- under it
Bold**bold** or __bold__
Italic*italic* or _italic_
Quote> Quoted text
Bulleted list- item, or * or + in place of the dash
Numbered list1. item
Divider--- on its own line, with a blank line above
Link[text](https://example.com)
Link with the address kept apart[text][ref], then [ref]: https://example.com on a line of its own
Image![description](photo.png)
Bare address in brackets<https://example.com>
Line break inside a paragraphTwo spaces at the end of the line, or a \
Literal character\*not italic\*
Code block by indentingFour spaces at the start of each line

Code

Inline code goes between single backticks. A code block goes between two fence lines, made of three backticks or three tildes. Both kinds of fence are standard.

Run `git status` first.

~~~
git status
git diff
~~~

Extended Markdown

These aren't in CommonMark. The first four are in the GFM spec, so GitHub and many editors follow them. The last three are less settled.

WhatWriteDefined by
TableSee the next sectionGFM
Checklist- [ ] to do and - [x] doneGFM
Strikethrough~~gone~~GFM
Bare web addresshttps://example.com or www.example.comGFM
Footnote[^1] in the text, then [^1]: The noteGitHub's docs, not the GFM spec
Highlight==marked==Neither. It depends on the app
Link to a note[[Other note]]Neither. It depends on the app

Tables

A table needs a header row and a row of dashes under it. Colons in the dashes set the alignment.

| Plan | Price |
| :--- | ---: |
| Monthly | €3 |
| Yearly | €29 |

GFM lets you leave out the outer pipes, and the columns don't have to line up in the source. There's more in the guide to Markdown tables.

What Coffee draws

Coffee reads most of the above and shows it formatted as you write. A few standard forms stay on the page exactly as you typed them: underlined headings, reference links, code blocks made by indenting, and raw HTML apart from <mark>. For a bare address, leave off the angle brackets, as Coffee's link detection is built for the plain form and only looks for http:// and https://.

Nothing is lost when that happens. The text stays in the file, and another app can still read it.

Of the extended forms, Coffee draws tables, checklists, strikethrough with two tildes, ==highlight==, [[links]], footnotes, GitHub-style callouts, $$ maths blocks, and Mermaid flowcharts, pie charts and sequence diagrams. Inline $…$ maths is shown in italic but not drawn as a formula. The details are in the post on footnotes, task lists and other extended Markdown.

Coffee's keyboard shortcuts

These come from Coffee's menus. They add or remove the Markdown for you, so what lands in the file is the plain syntax from the tables above.

FormatShortcut
Bold⌘B
Italic⌘I
Strikethrough⇧⌘X
Highlight⇧⌘H
Inline code⌃⌘C
Link⇧⌘L
Heading 1 to 4⌥⌘1 to ⌥⌘4
Back to a paragraph⌥⌘0
Tick a checkbox, or make the line a checklist item⌘Return
Lines and sectionsShortcut
Move line up or down⌃⌘↑ or ⌃⌘↓
Move section up or down⌥⌘↑ or ⌥⌘↓
Duplicate line⇧⌘D
Delete line⇧⌘K
View and notesShortcut
Switch between the page and the Markdown⌘/
Split view⌥⌘/
Sidebar⌘\
Focus mode⇧⌘F
Word count⇧⌘C
Outline⇧⌘O
Search all notes⌘K
Export⌘E

Typing / at the start of a line opens a short menu for headings, lists, a checklist, a quote, a code block, a table, a divider, the date, an image or a template. In a table, in the page view, Tab moves to the next cell and adds a row after the last one.

A note on Mac keyboards

Some of these characters are harder to find than others, depending on your layout. On a British Mac keyboard, for example, # is ⌥3. If you can't find a character, the keyboard viewer in the macOS input menu shows where each one is on yours.

Questions

What's the difference between CommonMark and GitHub Flavored Markdown?

CommonMark is the specification for Markdown's core. GitHub Flavored Markdown is built on it and adds tables, task lists, strikethrough, more kinds of automatic links and a filter on some raw HTML.

Are footnotes standard Markdown?

No. They aren't in CommonMark or the GFM spec. GitHub documents them separately, and other tools have their own support, so check the app you publish with.

Do Markdown shortcuts work the same in every app?

No. The syntax is shared, but shortcuts belong to each app. The ones listed here are Coffee's, and they only insert ordinary Markdown, so the files work anywhere.