Skip to content

JeongJunHee/markdown-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Markdown Cheat Sheet

Table of contents

Basic Syntax

Headings

# Heading level 1

Heading level 1
===============

## Heading level 2

Heading level 2
---------------

### Heading level 3

#### Heading level 4

##### Heading level 5

###### Heading level 6
<h1>Heading level 1</h1>

<h1>Heading level 1</h1>

<h2>Heading level 2</h2>

<h2>Heading level 2</h2>

<h3>Heading level 3</h3>

<h4>Heading level 4</h4>

<h5>Heading level 5</h5>

<h6>Heading level 6</h6>

Heading level 1

Heading level 1

Heading level 2

Heading level 2

Heading level 3

Heading level 4

Heading level 5
Heading level 6

Paragraphs

I really like using Markdown.

I think I'll use it to format all of my documents from now on.
<p>I really like using Markdown.</p>

<p>I think I'll use it to format all of my documents from now on.</p>

I really like using Markdown.

I think I'll use it to format all of my documents from now on.

Line Breaks

To create a line break (<br>), end a line with two or more spaces, and then type return.

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>

This is the first line.
And this is the second line.

Emphasis

Bold

**bold text**

__bold text__
<strong>bold text</strong>

<strong>bold text</strong>

bold text

bold text

Italic

*italicozed text*

_italicozed text_
*italicozed text*

_italicozed text_

italicozed text

italicozed text

Bold and Italic

This text is ***really important***.

This text is ___really important___.

This text is __*really important*__.

This text is **_really important_**.
This text is <strong><em>really important</em></strong>.

This text is <strong><em>really important</em></strong>.

This text is <strong><em>really important</em></strong>.

This text is <strong><em>really important</em></strong>.

This text is really important.

This text is really important.

This text is really important.

This text is really important.

Blockquotes

> blockquote

blockquote

Blockquotes with Multiple Paragraphs

> Blockquotes with Multiple Paragraphs
>
> Blockquotes with Multiple Paragraphs

Blockquotes with Multiple Paragraphs

Blockquotes with Multiple Paragraphs

Nested Blockquotes

> Nested Blockquotes
>
>> Nested Blockquotes

Nested Blockquotes

Nested Blockquotes

Blockquotes with Other Elements

> #### The quarterly results look great!
>
> - Revenue was off the chart.
> - Profits were higher than ever.
>
>  *Everything* is going according to **plan**.

The quarterly results look great!

  • Revenue was off the chart.
  • Profits were higher than ever.

Everything is going according to plan.

Lists

Ordered List

1. First Item
2. Second Item
3. Third Item
<ol>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ol>
  1. First Item
  2. Second Item
  3. Third Item

Unordered List

- First Item
- Second Item
- Third Item
<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ul>
  • First Item
  • Second Item
  • Third Item

Code

`code`

code

Code Blocks

indent every line of the block by at least four spaces or one tab.

    <html>
      <head>
      </head>
    </html>
<html>
  <head>
  </head>
</html>

Horizontal Rule

***

---

_________________



Link

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

link

Image

![alt text](image.jpg)

alt text

Escaping Characters

\* Without the backslash, this would be a bullet in an unordered list.

* Without the backslash, this would be a bullet in an unordered list.

Extended Syntax

Not all Markdown applications support extended syntax elements.

Table

| Syntax    | Description |
| --------- | ----------- |
| Header    | Title       |
| Paragraph | Text        |
Syntax Description
Header Title
Paragraph Text

Alignment

| Syntax    | Description |   Test Text |
| :-------- | :---------: | ----------: |
| Header    |    Title    | Here's this |
| Paragraph |    Text     |    And more |
Syntax Description Test Text
Header Title Here's this
Paragraph Text And more

Fenced Code Block

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

Footnote

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

[^1]: This is the footnote 1.
[^2]: This is the footnote 2.
Here's a sentence with a footnote 1. <sup id="sup1">[[1]](#footnote1)</sup>
Here's a sentence with a footnote 2. <sup id="sup2">[[2]](#footnote2)</sup>

<!-- footer -->

***

<span id="footnote1">1</span>: This is the footnote 1. [↩](#sup1)
<span id="footnote2">2</span>: This is the footnote 2. [↩](#sup2)

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

Superscript

(x + 1)^2^ = x^2^ + 2x + 1
(x + 1)<sup>2</sup> = x<sup>2</sup> + 2x + 1

(x + 1)2 = x2 + 2x + 1

Subscript

y = log~2~(x)
y = log<sub>2</sub>(x)

y = log2(x)

Heading ID

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

[Heading ID](#heading-id)

My Great Heading {#heading-id}

Heading ID

Definition List

First Term
: This is the definition of the first term.

Second Term
: This is one definition of the second term.
: This is another definition of the second term.
<dl>
  <dt>First Term</dt>
  <dd>This is the definition of the first term.</dd>
  <dt>Second Term</dt>
  <dd>This is one definition of the second term. </dd>
  <dd>This is another definition of the second term.</dd>
</dl>
First Term
This is the definition of the first term.
Second Term
This is one definition of the second term.
This is another definition of the second term.

Strikethrough

~~The world is flat.~~

The world is flat.

Task List

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

Emoji

:smile:
:laughing:
:stuck_out_tongue_closed_eyes:

πŸ˜„ πŸ˜† 😝

References

Markdown Guide


1: This is the footnote 1. ↩
2: This is the footnote 2. ↩

Releases

No releases published

Packages

No packages published