본문 바로가기
Programming/markdown

[markdown] 마크다운 기본 문법 - 3. Line Breaks

by x-coder 2023. 10. 2.

Hello. { #Somebody }

Basic Syntax of Markdown

 

안녕하세요. MrSeoul입니다.

 

마크다운 문법 중 줄 바꿈(Line breaks)에 대해서 기록합니다

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

 

Line Breaks

문장 줄 끝에서 "띄워쓰기 2칸 이상을 하면"을 사용하면 줄 바꿈을 할 수 있습니다.

줄 바꿈은 html의 <br> 태그와 같습니다. (md 파일에서도 html태그를 사용할 수 있습니다.)

[예시]

1
2
3
4
5
This is the first line.
And this is the second line.
 
<p>This is the first line.<br>
And this is the second line.</p>
cs

[결과]

Enter를 쳐서 실제 줄바꿈해도 결과로 나올 수도 있지만,
안될 경우에는 문단끝에서 Space를 2번 이상 해주시면 됩니다.

 

참고 : markdownguide.org
 

Basic Syntax | Markdown Guide

The Markdown elements outlined in the original design document.

www.markdownguide.org

 

 

Bye. { #Somebody }