Skip to content
Nolboo Kim edited this page Apr 12, 2014 · 1 revision

Table of Contents generated with DocToc

[마크다운 사용법]

1. 제목입력

제목1

#제목1 #다음에 스페이스가 와도 상관없음 처음문자가 #이면 그줄은 무조건 제목이 된다

제목2의 경우는 자동밑줄

제목3

제목4

제목5
제목6

제목1 (=가 하나이든 무한대든 줄 체크를 함. =라인에 다른문자가 있으면 안됨)

제목2의 경우는 자동밑줄

2. 텍스트 강조

강조테스트 여기서 강조시작 또한 (**) 블럭안에서는 줄을 바꿔도 되네 ^^ ** 다음에 스페이스가 들어가면 안된다 ** <-- 이건 텍스트 꾸밈은 모두 공통

3. 그밖 텍스트 꾸밈

기울여 쓰기

강조와 이태릭

밑줄 텍스트가 된다고 하는데 되지가 않음 <-- 이건 지금 사용하고 있는 마크다운 에디터가 지원을 안하는것 같아보임

다른 설명서를 보면 *와 _는 같은 역할을 한다고 한다. 즉 ** 나 __ 가 동일하고 * 과 _ 가 동일하다 (즉, _ 가 밑줄이라고 설명하는 곳은 그렇게 프로그램을 짠것이다.)

빈줄을 만들고 싶을경우는 줄바꿈을 두번하면됨 하지만 밑에 라인에 내용이 있어야지만 한줄이 떨어지게 됨 (두줄은 안떨어짐 ㅠㅠ)

4. 줄긋기

줄긋기는 3가지 형태로 입력할 수 있다. (-)(_)(*) 3개 이상을 연속으로 입력하여야 함 하지만 (- 와 _)의 경우는 꼭 한줄이상을 띄워서 입력해야 한다. <-- 실상 안그래도 되는 경우가 허다하다. (결과물 확인이 필요 - 여기서는 두꺼운 줄이 생김) 이전줄이 제목이나 다른 형태의 마크다운으로 구성이 되어있다면 한줄을 안띄고도 된다.




5. HTML입력

1
2

3

스타일도 먹고 마음대로 써도 되네
이건 링크 다음에 나올 링크와도 비교해보기 바람

6. 링크입력

[링크](https://www.example.com "한칸 띄고 "로 문자를 역으면 alt텍스트")

링크텍스트가 들어감

다음과 같이 대괄호로 아래와 같이

This is the [anchor text][id] for a link. Now I'll just define the link at the bottom. [id]: http://www.example.com/ "아이디의 경우 콜론으로 시작해서 ()의 규칙을 따름"

간단하게 <>사이에 주소만 적어도 됨 http://example.com/

링크주소가 메일이면 메일태그가 적용됨 cottonfoxy@gmail.com

7. 단락

Single newlines are ignored. Two or more newlines make a new paragraph.

This line is example 1. It is its own paragraph.

This line is example 2. It is its own paragraph.

This set of lines is example 3. The single newlines used in this example will be ignored. The entire text in this example is treated as if it were a single paragraph.

마지막 문자의 줄바꿈을 하고 싶다면 마지막에 스페이스를 두개이상 쓰면 줄바꿈이 된다.

This set of lines is example 3. The single newlines used in this example
will be ignored. The entire text in this example is treated as if it
were a single paragraph.

8. 코드입력

def syntax_highlight() {  
  puts "Hi!"  
}  

또는

이건 인라인 코드블럭이다. 즉, 한줄로 표현된다. 블럭안에서 빈라인이 있으면 무시된다
def syntax_highlight() { 
  puts "Hi!"
}
블럭안에서 

빈라인이 있으면 무시된다

9. 인용

Add blockquotes to your pages using the greater-than angle bracket for each line you want to be part of the quote.

Nest quotes with multiple angle brackets.

You can use any of the other markdown styles within blockquotes.

줄 띄움에 유의해서 살펴봐라

10. 테이블

Table header 1 Table Header 2
row1 - column1 row1 - column2
row2 - column1 row2 - column2

Outer pipes are optional:

Table header 1 Table Header 2
row1 - column1 row1 - column2
row2 - column1 row2 - column2

You can also define column alignment via the table-header and table-body separator:

|:---| - left-align |---:| - right-align |:--:| - centered |----| - default (no defined alignment in the rendered html).

테이블의 경우는 지원하는놈이 많지않다.

11. 순서리스트

  1. List item 1
  2. List item 2
  3. List item 2 (이건 순서가 3이된다)
  4. List item 3 (이건 순서가 4가된다)

숫자와.그리고 스페이스가 나오면 순서리스트가 된다. 중간에 빈라인을 넣어도 되지만 순서리스트의 경우 결과에 서 볼수 있듯이 순서는 html이 정하게 된다. 즉, rendering으로 넘겨주는 텍스트에는 숫자와.이 전송되지 않는다.

12. Bulleted리스트

  • List item 1

  • List item 2

  • List item 3

  • List item 11
  • List item 12
  • List item 13
  • List item 21
  • List item 22
  • List item 23

결과에서 보듯이 *-+ 모두사용할 있지만 중간에 빈줄이 들어가면 좀 이상하게 표현이 된다. 확실히 알아보도록

13. 중첩리스트

You can nest lists like this.

  1. Level 1 1.1. Level 2
  • Level 1 ** Level 2
  1. Level 1 ** Level 2

Or with tabs

  1. Level 1
  • Level 2

이것도 잘 표현되는지 체크해보도록

14. Definition리스트

Term : Definition

Multifple Definitions

Apple : Pomaceous fruit of plants of the genus Malus. : An american computer company.

Multiple Terms

Term 1 Term 2 : Definition

이것도 잘 표현되는지 체크해보도록

15. 이미지표현

alt-text

링크에 !를 처음에 사용하면 됨

16. 비디오

This is simply a convenience tag for hackBytes and is not part of markdown. It will not work anywhere else unless it is manually implemented. [video url-here] [video url-here | style-here]

17. Literal Characters

\ backslash
` backtick
* asterisk
_ underscore
{} curly braces
[] square brackets
() parentheses
# hash mark
+ plus sign
- minus sign (hyphen)
. dot
! exclamation mark
: colon
| pipe

콜론과 파이프의 경우도 \가 필요하지만 에디터마다 필요없는 경우가 있으니 헤깔리지 말도록

참조문서