DEV Community

Lam
Lam

Posted on

Markdown Cheat Sheet

A quick reference to the Markdown syntax. Overview. This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements.

Reference

[h2] Tables

| Column 1 Heading | Column 2 Heading |
| ---------------- | ---------------- |
| Some content     | Other content    |
Enter fullscreen mode Exit fullscreen mode
Column 1 Heading | Column 2 Heading
--- | ---
Some content | Other content
Enter fullscreen mode Exit fullscreen mode

[h2] Horizontal line

----
Enter fullscreen mode Exit fullscreen mode
****
Enter fullscreen mode Exit fullscreen mode

[h2] Blockquotes

> This is
> a blockquote
>
> > Nested
> > Blockquote
Enter fullscreen mode Exit fullscreen mode

[h2] Code

    4 space indent
    makes a code block
Enter fullscreen mode Exit fullscreen mode
```
code fences
```
Enter fullscreen mode Exit fullscreen mode
```js
codeFences.withLanguage()
```
Enter fullscreen mode Exit fullscreen mode

[h2] Images

![Image alt text](/path/to/img.jpg)
![Image alt text](/path/to/img.jpg "title")
![Image alt text][img]
Enter fullscreen mode Exit fullscreen mode
[img]: http://foo.com/img.jpg
Enter fullscreen mode Exit fullscreen mode

[h2] Links

[link](http://google.com)
Enter fullscreen mode Exit fullscreen mode
[link][google]
[google]: http://google.com
Enter fullscreen mode Exit fullscreen mode
<http://google.com>
Enter fullscreen mode Exit fullscreen mode

[h2] Lists

* Item 1
* Item 2
Enter fullscreen mode Exit fullscreen mode
- Item 1
- Item 2
Enter fullscreen mode Exit fullscreen mode
- [ ] Checkbox off
- [x] Checkbox on
Enter fullscreen mode Exit fullscreen mode
1. Item 1
2. Item 2
Enter fullscreen mode Exit fullscreen mode

[h2] Emphasis

*italic*
_italic_
Enter fullscreen mode Exit fullscreen mode
**bold**
__bold__
Enter fullscreen mode Exit fullscreen mode
`code`
Enter fullscreen mode Exit fullscreen mode

[h2] h3

h4

h5
h6

Enter fullscreen mode Exit fullscreen mode


markdown

Header 1


Enter fullscreen mode Exit fullscreen mode


markdown

Header 2


### [Reference] Headers

Enter fullscreen mode Exit fullscreen mode


markdown

h1

Top comments (0)