markdown cheatsheet

From Petr Sladek

Jump to: navigation, search

Writing in Markdown format?

Not remembering all the syntax?

Need a cheatsheet! =)

Contents

emphasis

*italic*
_italic_
**bold**
__bold__

link

An [example](http://url.com/ "Title")

An [example][id]. Then, anywhere
else in the doc, define the link:
[id]: http://example.com/  "Title"

image

![alt text](/path/img.jpg "Title")

![alt text][id]
[id]: /url/to/img.jpg "Title"

header

# Header 1 #
## Header 2 ##
###### Header 6

list

1. One
2. Two
*   Beauty
    * Beast
*   Snow White
    1.  Happy
    2.  Sleepy
        * snores
    3. Bashful
*   Ariel

code

`<code>` spans are delimited by backticks

literal backticks `` `escaped` ``

```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

Or indent every line of a code block by at least 4 spaces or 1 tab.

table

| Table | Header | Cool |
| ----- |:------:| ----:|
| left  | center |right |
1|2|3

Note: Not part of the official syntax!

Personal tools