RUNWEBTOOLS
English

Markdown Syntax Cheat Sheet

Markdown is a lightweight way to format plain text that converts cleanly to HTML — used in READMEs, docs, chat apps, and static sites. The core syntax below works almost everywhere; a few items noted as GFM are GitHub-Flavored Markdown extensions.

Updated 2026-07-06

Text & inline

ElementSyntaxNotes
Heading 1# HeadingOne # per level, up to ######
Heading 2## HeadingTwo hashes
Bold**bold text**Or __bold text__
Italic*italic text*Or _italic text_
Bold + italic***both***Three asterisks
Strikethrough~~struck~~GitHub-flavored Markdown
Inline code`code`Wrap in single backticks
Link[text](https://url.com)Text in [], URL in ()
Image![alt](image.png)Like a link with a leading !
Blockquote> quoted textAdd > to each line
Horizontal rule---Three or more dashes on their own line

Lists

ElementSyntaxNotes
Bullet list- itemOr * item / + item
Numbered list1. itemNumbers can all be 1.
Nested item - subitemIndent two spaces
Task list- [ ] to do- [x] done (GFM)

Blocks

In the syntax column, \n marks where a new line goes.

ElementSyntaxNotes
Code block```lang\ncode\n```Fence with three backticks; lang is optional
Table| A | B |\n|---|---|\n| 1 | 2 |Pipes separate cells; --- row sets the header
Line breakend with two spacesOr a backslash at line end
Escape\* literal asteriskBackslash before a special character

Related tools