Markdown cheat sheet
Markdown is plain text that converts to formatted pages. This is the common syntax used by GitHub and most editors.
Text
# Heading 1 ## Heading 2 ### Heading 3- Headings
**bold**- Bold
*italic*- Italic
~~strike~~- Strikethrough (GitHub)
> quote- Block quote
---- Horizontal line
Lists
- item- Bulleted list (also * or +)
1. item- Numbered list
- nested- Indent two spaces for a sub-item
- [ ] task - [x] done- Task list (GitHub)
Links and images
[text](https://example.com)- Link
- Image
<https://example.com>- Automatic link
[text][ref] then [ref]: https://example.com- Reference-style link
Code
`code`- Inline code
```js ... ```- Fenced code block with a language
indented- Code block by indenting four spaces
Tables
| a | b |- Header row
|---|---|- Separator row (required)
| 1 | 2 |- Body row
|:--|--:|- Left and right alignment in the separator
Tips
two spaces at line end- Line break inside a paragraph
\*- Escape a special character
<br>- Line break through HTML (most renderers allow it)
Learn it properly