Programming/markdown

[markdown] 마크다운 기본 문법 - 5. 인용

x-coder 2023. 10. 9. 09:33

Hello. { #Somebody }

Basic Syntax of Markdown

 

안녕하세요. MrSeoul입니다.

마크다운 문법 중  인용(Blockquotes)에 대해서 기록합니다 

github에서 사용 가능한 문법 기준입니다.

 

Blockquotes

문장 맨 앞에 ">"을 사용하면 인용문으로 만들 수 있습니다.

[예시]

1
> 이것은 인용문입니다.
cs

[결과]

 

여러 문장을 같은 인용문으로 사용할 수도 있습니다.

[예시]

1
2
3
> 이것은 인용문입니다.
>
> markdown 문법 중에서도 많이 사용되기 때문에 잘 활용하면 좋습니다
cs

[결과]

 

 

인용문을 중첩으로 사용할 수도 있습니다. (인용문의 인용문..)
이것을 Nested Blockquotes라고 합니다.

[예시]

1
2
3
4
5
6
> Dorothy followed her through many of the beautiful rooms in her castle.
>
>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
>
> 위와 같이 중첩 인용문을 사용할 수 있습니다.
 
cs

[결과]

 

 

인용을 사용한 상태에서 다른 markdown 문법도 혼용해서 사용할 수 있습니다.
(헤더 / List / 강조 / 기울임 등)

[예시]

1
2
3
4
5
6
> #### The quarterly results look great!
>
> - Revenue was off the chart.
> - Profits were higher than ever.
>
>  *Everything* is going according to **plan**.
cs

[결과]

 

인용(Blockquotes를 사용 시에는 앞 뒤로 한 줄을 띄어 쓰는 것을 권장드립니다.
markdown guide에서 권장

 

참고 : markdownguide.org
 

Basic Syntax | Markdown Guide

The Markdown elements outlined in the original design document.

www.markdownguide.org

 

 

Bye. { #Somebody }