.md
또는 .markdown
을 확장자로 갖는 문서를 작성한다. # Heading level 1
## Heading level 2
###### Heading level 6
Heading level 1
Heading level 2
Heading level 6
Heading level 1
===============
Heading level 1
Heading level 2
---------------
Heading level 2
*This text will be italic*
_This will also be italic_
This text will be italic
This will also be italic
**This text will be bold**
__This will also be bold__
This text will be bold
This will also be bold
_You **can** combine them_
You can combine them
~~This text will have a strikethrough~~
This text will have a strikethrough
* Item 1
* Item 1-1
* Item 1-2
* Item 1-2-1
- Item 2
+ Item 3
- Item 1
- Item 1-1
- Item 1-2
- Item 1-3
- Item 3
- Item 4
* Step 1
- Step 1-1
+ Step 1-1-1
- Step 1
Step 1-1
Step 1-1-1
Note.
1. First
1. Second
2. Third
- First
- Second
- Third
Note.
[x] This is a complete item
[ ] This is an incomplete item
[x] This is a complete item
[ ] This is an incomplete item
Note.
> This is blockquote
>
> > This is nested blockquote
This is blockquote
This is nested blockquote
> Blockquotes can contain other Markdown formatted elements.
>
> #### Heading
>
> - unordered list
> 1. ordered list
>
> *Not all elements can be used* - **you'll need to experiment to see which ones work.**
Blockquotes can contain other Markdown formatted elements.
Heading
- unordered list
- ordered list
Not all elements can be used - you'll need to experiment to see which ones work.
![Sample image](images/0002.jpg)
Format: ![Alt Text](url)
Photo by Joris Visser on Unsplash
Note.
[DaveLogs](http://davelogs.tistory.com)
Format: [Link Text](url)
http://davelogs.tistory.com - automatic!
http://davelogs.tistory.com - automatic!
You should write a `README.md` in GitHub.
You should write a
README.md
in GitHub.
Wow! Awesome!! :clap: :+1: :sunglasses:
Wow! Awesome!! :clap: :+1: :sunglasses:
Note.
Here
--- (dashes)
*** (asterisks)
___ (underscores)
There
Here
There
Note.
-
), 아스테리스트(*
) 또는 언더스코어(_
)를 이용해 수평선 적용(row, col) | column 1 | column 2 | column 3
---------- | -------- | -------- | --------
row 1 | (1, 1) | (1, 2) | (1, 3)
row 2 | (2, 1) | (2, 2) | (2, 3)
row 3 | (3, 1) | (3, 2) | (3, 3)
(row, col) column 1 column 2 column 3 row 1 (1, 1) (1, 2) (1, 3) row 2 (2, 1) (2, 2) (2, 3) row 3 (3, 1) (3, 2) (3, 3)
Syntax | Description | Test Text
:-------- | :---------: | ----------:
Left | Center | Right
This | is | the alignment
Syntax Description Test Text Left Center Right This is the alignment
Note.
-
)과 파이프(|
)를 이용해 표를 테이블을 구성-
)으로 첫번째 행으로 지정:
)과 하이픈(-
)을 이용해 열(column)의 정렬 방법 설정```
$ sudo apt-get update
```
$ sudo apt-get update
```javascript
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
```
function fancyAlert(arg) { if(arg) { $.facebox({div:'#foo'}) } }
```python
def validate(arg):
if arg is None:
return False
return True
```
def validate(arg): if arg is None: return False return True
```json
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
{ "firstName": "John", "lastName": "Smith", "age": 25 }