Markdown Examples  

This page shows examples of Markdown

Used mostly as a reference for me when creating blog posts


Headers

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6


# Header 1

## Header 2

### Header 3

#### Header 4

##### Header 5

##### Header 6


Typography

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or underscores.

Combined emphasis with asterisks and underscores.

Strikethrough uses two tildes. Scratch this.


Emphasis, aka italics, with _asterisks_ or _underscores_.

Strong emphasis, aka bold, with **asterisks** or **underscores**.

Combined emphasis with **asterisks and _underscores_**.

Strikethrough uses two tildes. ~~Scratch this.~~

Lists

Ordered list

  1. item 1

  2. item 2

    1. sub-item a
    2. sub-item b
  3. item 3 with paragraph

    Just have it indent to see nice indentations

    And just add blank line for continuation

  4. Last item

Unordered list

  • first
  • second
  • third


**Ordered list**

1. item 1
1. item 2
    1. sub-item a
    1. sub-item b
1. item 3 with paragraph

    Just have it indent to see nice
    indentations

    And just add blank line for continuation

1. Last item

**Unordered list**

-   first
-   second
-   third



Images

Here’s our logo (hover to see the title text):

Inline-style: alt text

Reference-style: alt text



Here's our logo (hover to see the title text):

Inline-style:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png 'Logo Title Text 1')

Reference-style:
![alt text][logo]

[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png 'Logo Title Text 2'


Code Blocks

var s = 'JavaScript syntax highlighting'
alert(s)
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.


```javascript
var s = 'JavaScript syntax highlighting'
alert(s)
```

```python
s = "Python syntax highlighting"
print s
```

```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
```


Tables

Colons can be used to align columns.

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripes….are neat$1

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don’t need to make the raw Markdown line up prettily. You can also use inline Markdown.

MarkdownLessPretty
Stillrendersnicely
123


Colons can be used to align columns.

| Tables            |      Are      |   Cool |
| ----------------- | :-----------: | -----: |
| col 3 is          | right-aligned | \$1600 |
| col 2 is          |   centered    |   \$12 |
| zebra stripes.... |   are neat    |    \$1 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the
raw Markdown line up prettily. You can also use inline Markdown.

| Markdown | Less      | Pretty     |
| -------- | --------- | ---------- |
| _Still_  | `renders` | **nicely** |
| 1        | 2         | 3          |


BlockQuotes

Blockquotes are very handy in email to emulate reply text. This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.



> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.

Quote break.

> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can _put_ **Markdown** into a blockquote.