Markdown for Jekyll

Jekyll 글 작성에서 Markdown 문법 정리.

링크

[Posts]({{ "/posts/" | relative_url }} "Posts")
[Posts]({{ "/posts/" | absolute_url }} "Posts")
See the section on [`code`](#code)
[Google](https://google.com/ "google link")
[Google](https://google.com/ "google link"){: target="_blank"}
<https://google.com/>{: target="_blank"}

이미지

![alt text]({{ "/assets/img/image_800x250.png" | absolute_url }}){: .center}
![alt text]({{ "/assets/img/image_800x250.png" | absolute_url }}){: width="100%" .center}
![alt text]({{ "/assets/img/image_800x250.png" | absolute_url }}){: width="300px" height="200px"}
![alt text]({{ "/assets/img/image_800x250.png" | absolute_url }} "설명"){: .center}

alt text alt text alt text alt text

테이블

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

소스 코드

일반 텍스트

```
C:\>dir/w
```

Liquid

```
{‰ raw ‰}
![alt text]({{ "/assets/img/image_800x250.png" | absolute_url }})
{‰ endraw ‰}
```

Markdown

```
## This is H1
```

Language 참고
https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers

코드

- At the command prompt, type `nano`.
- ``Use `code` in your Markdown file.``
  • At the command prompt, type nano.
  • Use `code` in your Markdown file.

강조

- *single asterisks*
- _single underscores_
- **double asterisks**
- __double underscores__
- ~~cancelline~~
  • single asterisks
  • single underscores
  • double asterisks
  • double underscores
  • cancelline

헤더

# This is a H1
## This is a H2
### This is a H3
#### This is a H4
##### This is a H5
###### This is a H6

This is a H1

This is a H2

This is a H3

This is a H4

This is a H5
This is a H6

블럭인용

> This is a first blockqute.
>   > This is a second blockqute.
>   >   > This is a third blockqute.

This is a first blockqute.

This is a second blockqute.

This is a third blockqute.

순서있는 목록

1. 첫번째
    1. 1-1
    1. 1-2
1. 두번째
1. 세번째
  1. 첫번째
    1. 1-1
    2. 1-2
  2. 두번째
  3. 세번째

순서없는 목록

- 첫번째
    - 1-1
    - 1-2
- 두번째
- 세번째
  • 첫번째
    • 1-1
    • 1-2
  • 두번째
  • 세번째

수평선

***
---


줄 바꿈

줄의 끝에 공백 3개 이상을 입력하고 다음 줄 입력하면 줄 바꿈이 적용된다.

- 첫 번째 항목   
  첫 번째 항목의 두 번째 줄
- 두 번째 목록
  • 첫 번째 항목
    첫 번째 항목의 두 번째 줄
  • 두 번째 목록

Youtube

[![alt text](http://img.youtube.com/vi/9bZkp7q19f0/0.jpg)](http://www.youtube.com/watch?v=9bZkp7q19f0)
[![alt text](http://img.youtube.com/vi/9bZkp7q19f0/0.jpg)](http://www.youtube.com/watch?v=9bZkp7q19f0){: target="_blank"}
<iframe width="560" height="315" src="https://www.youtube.com/embed/9bZkp7q19f0" frameborder="0" allowfullscreen></iframe>

alt text alt text

참고 사이트