Markdown

Markdown

  • A lightweight markup language with plain text formatting syntax

Basic Syntax

1
2
3
4
5
6
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6

Style

Highlight
Bold or Bold
Italic or Italic
Italic Bold or Italic Bold
Strike-through
Evernote


1
2
3
4
5
6
7
`Highlight`
**Bold** or __Bold__
*Italic* or _Italic_
***Italic Bold*** or ___Italic Bold___
~~Strike-through~~
<u>evernote</u> # Use HTML
*** # A Line

New line

This is the first line.
This is the second line.

1
2
This is the first line.□□ # 2 space or 1 empty line
This is the second line.

Unordered List

  • red
  • green
  • blue
1
2
3
* red
* green
* blue

or

  • red
  • green
  • blue
1
2
3
- red
- green
- blue

or

  • red
  • green
  • blue
1
2
3
+ red
+ green
+ blue

Ordered List

  1. red
  2. green
  3. blue
1
2
3
1. red
2. green
3. blue

Todo List

  • Todo 1
  • Todo 2
  • Done 1
  • Done 2
1
2
3
4
- [ ] Todo 1
- [ ] Todo 2
- [x] Done 1
- [x] Done 2

Remember space between [ and ]

Blockquote

Like this
then this

Or this

Pay attention here !

1
2
3
4
5
> Like this
> then this
> > Or this
Pay attention here! Use an empty line to end the blockquote.

Code Block

1
printf("Hello World!");

Use 3 × ` before and after the code block.

Highlight Code Block

1
print 'hello world'

Add language name after first ‘’’

My Github

1
[My Github](https://github.com/ylzhang96)

Image

Mou icon

1
![Mou icon](http://mouapp.com/Mou_128.png)

Extended Function

Some editors don’t support these functions.

Contents

[TOC]

1
[TOC]

Math

$$e^{i\pi} + 1 = 0$$
Function: $e^{i\pi} + 1 = 0$

More Detail in

Table

Color Chinese
red 红色
green 绿色
blue 蓝色
1
2
3
4
5
| Color | Chinese |
| :------- | :---------: |
| red | 红色 |
| green | 绿色 |
| blue | 蓝色 |

Footnote

This is the first footnote[^1] example.
This is the second footnote[^2] example.

1
2
This is the first footnote[^1] example.
This is the second footnote[^2] example.

Flow Chart

Gantt Chart

Tips

Use HTML in markdown

iframe

1
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=29818819&auto=0&height=66"></iframe>

comment-out code

1
<!-- What I write there you will never see -->

Sublime Plugins

MarkdownEditing

OmniMarkupPreviewer

  • Ctrl + Alt + O: Preview Markup in Browser
  • Ctrl + Alt + X: Export Markup as HTML
  • Ctrl + Alt + C: Copy Markup as HTML

Table Editor

Using Sublime Plugin ‘ Table Editor’ makes table easier: Table Editor Usage

Markdown for Evernote

Paste Photo

You can paste the local photos to the Evernote and resize local photo after photo name.

[^1]: Description of footnote 1
[^2]: Description of footnote 2