Home Text and Typography | 마크다운 써보기
Post
Cancel

Text and Typography | 마크다운 써보기

This post is to show Markdown syntax rendering on Chirpy, you can also use it as an example of writing. Now, let’s start looking at text and typography.

이 포스트는 해당 지킬 테마의 원작자가 작성한 방법을 토대로 정리하고 일부 추가하였습니다.
original author : cotes
edited by luejenie

마크다운(Markdown) 사용법


Titles (제목)


  1. < h태그 > : <h1></h1> ~ <h6></h6>
  2. # 사용

H1 - heading

H2 - heading

H3 - heading

H4 - heading

H5 - heading
H6 - heading


# 제목

## 제목

### 제목

#### 제목

##### 제목
###### 제목(6단계까지 가능)


(!) # 뒤에 띄어쓰기 한 칸 필수



Contents (목차)

오른쪽 목차 사용하려면,

  1. ## 대분류
  2. ### 소분류
(!) 테마 별로 다를 수 있음

가로선

  1. * * *
  2. ***
  3. * 5개 *****
  4. - 3개 —

Paragraph (문단)

  1. 줄바꿈을 두 번하기
  2. 역슬래시(\) 넣기

Quisque egestas convallis ipsum, ut sollicitudin risus tincidunt a. Maecenas interdum malesuada egestas. Duis consectetur porta risus, sit amet vulputate urna facilisis ac. Phasellus semper dui non purus ultrices sodales. Aliquam ante lorem, ornare a feugiat ac, finibus nec mauris. Vivamus ut tristique nisi. Sed vel leo vulputate, efficitur risus non, posuere mi. Nullam tincidunt bibendum rutrum. Proin commodo ornare sapien. Vivamus interdum diam sed sapien blandit, sit amet aliquam risus mattis. Nullam arcu turpis, mollis quis laoreet at, placerat id nibh. Suspendisse venenatis eros eros.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Footnote (주석)

  • 주석하고자 하는 내용 옆에 [^주석]

Click the hook will locate the footnote1, and here is another footnote2.


Lists

Ordered list (순서 있는 목록)

  1. Firstly
  2. Secondly
  3. Thirdly

Unordered list (순서 없는 목록)

  1. -, +, * 중 하나 사용
  2. 스페이스바 2번, 스페이스바 4번 (들여쓰기되면서 글머리표 변경됨)
  • Chapter
  • Section
  • Paragraph

  • Chapter
    • 스페이스바 2번
      • 스페이스바 4번

한 줄 아래로

  1. <br>
  2. 내용 끝에 역슬래시(\)

굵게 / 기울이기 / 밑줄 / 취소선

  1. 굵게 : **글자** 글자
  2. 기울이기 : _글자_ 또는 *글자* 글자
  3. 밑줄 : <U>글자</U> 또는 <u>글자</u> 글자
  4. 취소선 : ~~글자~~ 글자

문법 그대로 보이기

  • 맨 앞에 역슬래시(\) 사용하기



ToDo list

  • [ ] : 빈 체크
  • [x] : 체크

  • Job
    • Step 1
    • Step 2
    • Step 3

Description list

  • 단어 쓰고 아래에 : 하고 설명 쓰기
  • 깃허브 블로그
    : 설명 예시
깃허브 블로그 (단어 부분이 굵게 표시)
설명 예시
Sun
the star around which the earth orbits
Moon
the natural satellite of the earth, visible by reflected light from the sun

Block Quote (인용문)

This line shows the block quote.

  1. > 사용
  2. >> 사용
  • > 인용문 예시

    인용문 예시

  • >> 두 개 사용한 인용문 예시

    인용문 예시


Prompts

An example showing the tip type prompt.

An example showing the info type prompt.

An example showing the warning type prompt.

An example showing the danger type prompt.


Tables (표)

  • | : 행 구분
  • :————— : 열 구분
CompanyContactCountry
Alfreds FutterkisteMaria AndersGermany
Island TradingHelen BennettUK
Magazzini Alimentari RiunitiGiovanni RovelliItaly

  1. <> 사이에 링크 넣기 <http://127.0.0.1:4000>
  2. [링크명](링크주소) [home](http://127.0.0.1:4000)

Filepath

  • `/path/to/the/file.extend`{: .filepath}

Here is the /path/to/the/file.extend.


Inline code (인라인코드)

  • `` 사이에 쓰기
  • `inline Code`

This is an example of Inline Code.


Code blocks (코드블럭)

Common

  • ```
  • 사이에 내용 (하이라이트X, 라인넘버X)
  • ```
1
This is a common code snippet, without syntax highlight and line number.

특정 언어 사용 Specific Language

  • ```언어 : 언어에 따라 변수, 메서드 등에 하이라이트 부여
  • ```bash
1
2
3
4
if [ $? -ne 0 ]; then
  echo "The command was not successful.";
  #do the needful / exit
fi;

Specific filename

1
2
3
@import
  "colors/light-typography",
  "colors/dark-typography"

Mathematics

The mathematics powered by MathJax:

\[\sum_{n=1}^\infty 1/n^2 = \frac{\pi^2}{6}\]

When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are

\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]

Mermaid SVG

  • ```mermaid
 gantt
  title  Adding GANTT diagram functionality to mermaid
  apple :a, 2017-07-20, 1w
  banana :crit, b, 2017-07-23, 1d
  cherry :active, c, after b a, 1d

Images (이미지)

  • [이미지제목](이미지주소){: width: “가로사이즈” height:”세로사이즈” .정렬}
  • 정렬 안 적어도 무방
  • .normal : 일반적인 정렬(왼쪽기준)
  • .left : 글과 어울림 왼쪽정렬
  • .right : 글과 어울림 오른쪽 정렬

Default (with caption)

Desktop View
Full screen width and center alignment

Left aligned (.normal)

Desktop View

Float to left (.left)

Desktop View Praesent maximus aliquam sapien. Sed vel neque in dolor pulvinar auctor. Maecenas pharetra, sem sit amet interdum posuere, tellus lacus eleifend magna, ac lobortis felis ipsum id sapien. Proin ornare rutrum metus, ac convallis diam volutpat sit amet. Phasellus volutpat, elit sit amet tincidunt mollis, felis mi scelerisque mauris, ut facilisis leo magna accumsan sapien. In rutrum vehicula nisl eget tempor. Nullam maximus ullamcorper libero non maximus. Integer ultricies velit id convallis varius. Praesent eu nisl eu urna finibus ultrices id nec ex. Mauris ac mattis quam. Fusce aliquam est nec sapien bibendum, vitae malesuada ligula condimentum.

Float to right (.right)

Desktop View Praesent maximus aliquam sapien. Sed vel neque in dolor pulvinar auctor. Maecenas pharetra, sem sit amet interdum posuere, tellus lacus eleifend magna, ac lobortis felis ipsum id sapien. Proin ornare rutrum metus, ac convallis diam volutpat sit amet. Phasellus volutpat, elit sit amet tincidunt mollis, felis mi scelerisque mauris, ut facilisis leo magna accumsan sapien. In rutrum vehicula nisl eget tempor. Nullam maximus ullamcorper libero non maximus. Integer ultricies velit id convallis varius. Praesent eu nisl eu urna finibus ultrices id nec ex. Mauris ac mattis quam. Fusce aliquam est nec sapien bibendum, vitae malesuada ligula condimentum.


Dark/Light mode & Shadow(다크모드/라이트모드 & 그림자)

  • [이미지이름](이미지주소){: .light(or dark) .shadow}
  • .light: 라이트모드 / .dark: 다크모드
  • .shadow : 그림자
  • (참고) .rounded-숫자 : 사진 모서리를 ‘숫자’만큼 둥글게 .rounded-10

The image below will toggle dark/light mode based on theme preference, notice it has shadows. light mode only light mode only dark mode only

Video (동영상)

<iframe class=”embed-video youtube lazyload” src=”https://www.youtube.com/embed/ “ title=”YouTube video player” frameborder=”0” allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

Reverse Footnote

[^footnote]: The footnote source
[^fn-nth-2]: The 2nd footnote source\

  1. The footnote source 

  2. The 2nd footnote source 

This post is licensed under CC BY 4.0 by the author.