All posts

Markdown Quick Reference: Syntax Cheat Sheet for Mac

A concise bookmark-friendly markdown syntax reference. All common markdown elements, GitHub Flavored Markdown extensions, and examples. Save this page.

This is a quick reference card for markdown syntax. Save it, bookmark it, and come back when you need to remember how to format something.


Basic Formatting

ElementSyntaxOutput
Heading 1# HeadingLargest heading
Heading 2## HeadingLarger heading
Heading 3### HeadingMedium heading
Bold**bold**bold
Italic*italic*italic
Bold + Italic***text***text
Strikethrough~~strikethrough~~strikethrough
Inline code`code`code
Line breakTwo spaces at end of lineNew line, same paragraph
Horizontal rule--- or ***Visual divider

Lists

ElementSyntax
Bullet list- item or * item
Numbered list1. item
Nested list - indented item (2 spaces)

Example:

- First item
  - Nested item
- Second item

Links and Images

ElementSyntaxExample
Link[text](url)[OpenMark](https://openmarkapp.com)
Link with title[text](url "title")[OpenMark](https://openmarkapp.com "Native Mac editor")
Image![alt](url)![App icon](icon.png)
Image with link[![alt](img)](link)Click image to follow link

Code Blocks

Inline code:

Use `variable` in the sentence.

Code block (three backticks):

code here

Code block with language (for syntax highlighting):

function example() {
  return "syntax highlighted";
}

Blockquotes

Single line:

> This is a quote.

Multi-line:

> First line of quote.
> Second line of quote.

Nested:

> First level quote.
>> Nested quote.

Tables (GitHub Flavored Markdown)

| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Alignment:

| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |
LeftCenterRight
LCR

Task Lists (GitHub Flavored Markdown)

- [x] Completed task
- [ ] Incomplete task
- [ ] Another task to do

Renders as:

  • Completed task
  • Incomplete task
  • Another task to do

Footnotes

This is text with a footnote[^1].

[^1]: This is the footnote content.

The footnote appears at the bottom of the document and is automatically linked.


Escaping Characters

If you need to display a markdown symbol literally (not as formatting), use a backslash:

\# This will show a # symbol, not a heading.
\*\*Not bold\*\*

HTML

If markdown doesn't support something, you can embed HTML:

<div style="color: red;">This text is red.</div>

Extended Syntax: LaTeX Math

Some markdown viewers (including OpenMark) support LaTeX math notation:

Inline: $E = mc^2$

Block:

$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Extended Syntax: Mermaid Diagrams

OpenMark and other markdown viewers support Mermaid for flowcharts, sequence diagrams, and charts:

graph TD
  A[Start] --> B[Process]
  B --> C[End]

Common Markdown Tools for Mac

ToolPurpose
OpenMarkView markdown with LaTeX and Mermaid support
VS CodeWrite markdown with live preview
iA WriterMinimalist markdown writing
BearNote-taking with markdown support
ObsidianKnowledge management in markdown

Pro Tips

  1. Use relative links in markdown projects. Instead of full URLs, use [link](/blog/post-name) to link between pages.

  2. Write one sentence per line in version control. It makes diffs cleaner when you collaborate.

  3. Use semantic formatting. Bold for emphasis, not size. Headings for structure, not styling.

  4. Test your markdown in multiple viewers. GitHub, Notion, and VS Code may render things slightly differently.

  5. Keep it simple. Basic markdown is more portable than complex extensions.


For a guide on writing markdown from scratch, see How to Write Markdown: A Beginner's Guide.

For practical uses of markdown (meeting notes, students, developers), explore Markdown for Students or Markdown for Developers.


Download OpenMark → — $9.99, one-time, native macOS. View markdown with perfect formatting. Supports LaTeX, Mermaid, tables, task lists, and all GitHub Flavored Markdown extensions.