Markdown cheat sheet

Every core element and its syntax on one page. For worked examples of each, see Markdown basics.

Quick reference

ElementSyntaxPreview
Basic
Heading# H1###### H6Heading
Line breaktwo trailing spaces or \line one
line two
Bold**text**text
Italic*text*text
Strikethrough~~text~~text
Ordered list1. item
  1. item
Unordered list- item
  • item
Image![alt](url)🐱
Link[text](url)text
Inline code`code`code
Code block``` … ```
code
Blockquote> quote
quote
Horizontal rule---
Advanced
Underline<u>text</u>text
Colour<span style="color:red">text</span>text
Comment<!-- note -->nothing shown
Image width<img src="…" width="300">🐱
Accordion<details><summary>…
Showhidden

Escaping & special characters

To show a character that Markdown would otherwise interpret, put a backslash before it. The following can all be escaped:

\  ` * _ { } [ ] ( ) # + - . ! |

So \*literal asterisks\* renders as *literal asterisks* rather than italic text.

You can also insert a character by its HTML entity, such as &copy; for © and &rarr; for →.

Ready for more? See what the extensions add, or pick an editor from the tools directory.