Skip to content
Search

Markdown

lastmod 2026-08-03created 2016-10-2958 edits

Markdown is a type of markup language created by John Gruber and Aaron Swartz. Its advantage is that it is easy both to read and to write. Gruber also wrote a Perl script that converts documents written in Markdown to HTML. The file extension is .md.

Basic Syntax

These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.

Element

Markdown Syntax

Heading

# H1
## H2
### H3

Bold

**bold text**

Italic

*italicized text*

Blockquote

> blockquote

Ordered List

1. First item
2. Second item
3. Third item

Unordered List

- First item
- Second item
- Third item

Code

`code`

Horizontal Rule

---

Link

[title](https://www.example.com)

Image

![alt text](image.jpg)

Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

Element

Markdown Syntax

Table

Fenced Code Block


{ "firstName": "John", "lastName": "Smith", "age": 25 }

Footnote

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

Heading ID

### My Great Heading {#custom-id}

Definition List

term
: definition

Strikethrough

~~The world is flat.~~

Task List

- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

Syntax

# 제목 1
## 제목 2
### 제목 3
#### 제목 4
##### 제목 5
###### 제목 6

Heading 1 (h1) and heading 2 (h2) can also be written as follows.

제목 1
======

제목 2
------

Emphasis

Converted to <em>, <strong>, and <del> tags respectively.

To underline text, use the <u></u> tag directly.

이텔릭체는 *별표(asterisks)* 혹은 _언더바(underscore)_를 사용하세요.
두껍게는 **별표(asterisks)** 혹은 __언더바(underscore)__를 사용하세요.
**_이텔릭체_와 두껍게**를 같이 사용할 수 있습니다.
취소선은 ~~물결표시(tilde)~~를 사용하세요.
<u>밑줄</u>은 `<u></u>`를 사용하세요.

Converted to <a>.

[GOOGLE](https://google.com)

[NAVER](https://naver.com "링크 설명(title)을 작성하세요.")

[상대적 참조](../users/login)

[Dribbble][Dribbble link]

[GitHub][1]

문서 안에서 [참조 링크]를 그대로 사용할 수도 있습니다.

다음과 같이 문서 내 일반 URL이나 꺾쇠 괄호(`< >`, Angle Brackets)안의 URL은 자동으로 링크를 사용합니다.
구글 홈페이지: https://google.com
네이버 홈페이지: <https://naver.com>

[Dribbble link]: https://dribbble.com
[1]: https://github.com
[참조 링크]: https://naver.com "네이버로 이동합니다!"

Images

Converted to <img>. Similar to links, but prefixed with !.

![대체 텍스트(alternative text)를 입력하세요!](http://www.gstatic.com/webp/gallery/5.jpg "링크 설명(title)을 작성하세요.")

![Kayak][logo]

[logo]: http://www.gstatic.com/webp/gallery/2.jpg "To go kayaking."

Linking an image

Wrap the Markdown image code in link code.

[![Vue](/images/vue.png)](https://kr.vuejs.org/)

Inline code highlighting

`background`혹은 `background-image` 속성으로 요소에 배경 이미지를 삽입할 수 있습니다.

Block code highlighting

Type &#96; three or more times and also write the code language.

```html
<a href="https://www.google.co.kr/" target="_blank">GOOGLE</a>
.list > li {
  position: absolute;
  top: 40px;
}
function func() {
  var a = 'AAA';
  return a;
}
$ vim ./~zshrc
s = "Python syntax highlighting"
print s

No language indicated, so no syntax highlighting. 
But let's throw in a tag.
<h3 markdown="1">
인용문 (BlockQuote)
</h3>
<p markdown="1">
`<blockquote>` 태그로 변환됩니다.
</p>
```md
인용문(blockQuote)

> 남의 말이나 글에서 직접 또는 간접으로 따온 문장.
> _(네이버 국어 사전)_

BREAK!

> 인용문을 작성하세요!
>> 중첩된 인용문(nested blockquote)을 만들 수 있습니다.
>>> 중중첩된 인용문 1
>>> 중중첩된 인용문 2
>>> 중중첩된 인용문 3

Horizontal Rule

Enter three or more of any of these symbols.

---
(Hyphens)

***
(Asterisks)

___
(Underscores)

Line Breaks

동해물과 백두산이 마르고 닳도록 
하느님이 보우하사 우리나라 만세   <!--띄어쓰기 2번-->
무궁화 삼천리 화려 강산<br>
대한 사람 대한으로 길이 보전하세

Table

Mixing html inside markdown can work sometimes. In your particular case, it won't work cleanly:

| <td colspan=1>Layer 1  | <td colspan=1>Layer 2   | Layer 3 |
| ---------------------- | ----------------------- | --------- |
| <td rowspan=4>L1 Name  | <td rowspan=2>L2 Name A | L3 Name A |
|                        |                         | L3 Name B |
|                        | <td rowspan=2>L2 Name B | L3 Name C |
|                        |                         | L3 Name D |

Github Markdown

Autolinked references and URLs

See also

Favorite site

Markdown Guide

Tip

author Zer0 sitemap