Markdown Syntax Guide

Markdown Syntax Guide

January 1, 2019·kangwoo
kangwoo

마크다운(Markdown) 기본 문법 가이드

마크다운은 텍스트를 구조화하고 서식을 지정하는 간단하면서도 강력한 방법입니다. 이 글에서는 Hugo 콘텐츠 파일에서 사용할 수 있는 기본적인 마크다운 문법을 살펴보겠습니다.

헤딩(Heading) 사용하기

마크다운에서는 ‘#’ 기호를 사용하여 6단계의 헤딩을 표현할 수 있습니다. ‘#‘의 개수가 많아질수록 글자 크기는 작아집니다.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

텍스트 강조하기

마크다운에서는 이탤릭체와 볼드체를 사용하여 텍스트를 강조할 수 있습니다.

  • 이탤릭체는 별표 또는 언더바 한 개로 감싸서 표현
  • 볼드체는 별표 또는 언더바 두 개로 감싸서 표현
  • 두 가지를 조합하여 복합적인 강조 도 가능
*This text will be italic*
_This will also be italic_

**This text will be bold**
__This will also be bold__

_You **can** combine them_

This text will be italic

This will also be italic

This text will be bold

This will also be bold

You can combine them

리스트 만들기

순서가 없는 리스트

* Item 1
* Item 2
  * Item 2a
  * Item 2b
  • Item 1
  • Item 2
    • Item 2a
    • Item 2b

순서가 있는 리스트

1. Item 1
2. Item 2
3. Item 3
   1. Item 3a
   2. Item 3b

링크와 이미지

링크 삽입하기

[링크텍스트](URL)
예시: [Hugo](https://gohugo.io)

Hugo

이미지 삽입하기

![대체텍스트](이미지URL)
예시: ![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)

GitHub Logo

인용문 사용하기

인용문은 ‘>’ 기호를 사용하여 표현합니다.

As Newton said:

> If I have seen further it is by standing on the shoulders of Giants.

If I have seen further it is by standing on the shoulders of Giants.

코드 표현하기

인라인 코드

텍스트 중간에 백틱으로 감싸서 코드를 표현할 수 있습니다.

Inline `code` has `back-ticks around` it.

Inline code has back-ticks around it.

코드 블록

public class Main {
	public static void main(String[] args) {
		System.out.println("Hello World")
	}
}
func main() {
    fmt.Println("Hello World")
}

테이블 만들기

마크다운에서는 아래와 같이 테이블을 생성할 수 있습니다:

| Syntax    | Description |
| --------- | ----------- |
| Header    | Title       |
| Paragraph | Text        |
Syntax Description
Header Title
Paragraph Text

참고자료

Last updated on