Easy to Write Markdown File

Markdown Grammar

Headers

H1

H2

H3

level text
1 # h1
2 # h2
3 # h3

Underline-ish style for H1 and H2.

alt-H1

=====

Alt-H1

alt-H2

--------

alt-H2

Emphasis

Emphasis, aka italics, with *asterisks* or _underscores_.

Strong Emphasis, aka bold, with **asterisk** or __underscores__.

Combined emphasis with **asterisks and _underscores_**.

Combined emphasis with **asterisks and *underscores***.

Strikethrough uses two tildes. ~~Scratch this.~~

Emphasis, aka italics, with asterisks or underscores.

Strong Emphasis, aka bold, with asterisk or underscores.

Combined emphasis with asterisks and underscores.

Combined emphasis with asterisks and underscores.

Strikethrough uses two tildes. Scratch this.

Lists

1. First ordered list item
2. Another item

  * Unordered sub-list.

3. Actual numbers don't matter, just that it's a number
4. ordered sub-list

1. And another item.
  
  Some text that should b aligned with above item.

* Unordered list can use asterisks
- or minuses
+ or pluses
  1. First ordered list item
  2. Another item
  • Unordered sub-list.
  1. Actual numbers don’t matter, just that it’s a number
  2. ordered sub-list
  1. And another item.

Some text that should b aligned with above item.

  • Unordered list can use asterisks
  • or minuses
  • or pluses

Links

grammar: [text](link)

There are two ways to create links.

This is an inline-style link example.
[GitHub](https://www.github.com)

This is a reference-style link example.
[baidu][baidu-link]

This is an empty and get link later.
[bilibili]

[baidu-link]: https://www.baidu.com
[bilibili]: https://www.bilibili.com

There are two ways to create links.

This is an inline-style link example.
GitHub

This is a reference-style link example.
baidu

This is an empty and get link later.
bilibili

Images

grammar: ![text](link)
Inline-style

![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")

Reference-style

![NASA LOGO][nasa-logo]

[nasa-logo]: https://www.nasa.gov/sites/all/themes/custom/nasatwo/images/nasa-logo.svg "NASA LOGA"

Inline-style

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-3kIbgvc9-1591242734418)(https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png “Logo Title Text 1”)]

Reference-style

Tables

grammar for table contruct

| Tables         | Are           | Cool  |
|----------------|---------------|-------|
| col 3 is       | right-aligned | $1600 |
| col 2 is       | centered      | $12   |
| zerbra stripes | are neat      | $1    |

<++>

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zerbra stripes are neat $1

Blockquotes

> Blockquotes are very handy in email to emulate text.
> This line is part of the same quote.

Quote break.

> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
>> sub-quote, text here some word, and have a look at the effect.
>>> Could be three sub-quote.

>> Could be back to second sub. Yes, remember the empty row.

Blockquotes are very handy in email to emulate text.
This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.

sub-quote, text here some word, and have a look at the effect.

Could be three sub-quote.

Could be back to second sub. Yes!

Horizontal Rule

Three or more...

---

Hyphmens

***

Asterisks

___

Underscores

Three or more…


Hyphmens


Asterisks


Underscores

Line Break

Two ways to create a new line. One is hit twice, the other is hit twice and hit , and \ also works.

Here's a line for us to start with.

This line is separeted from the one above by two newlines, so it will be a separate *paragraph*.

This line is also begins a separate paragraph, but...\
This line is only separated by a single new line,  
and this line is also only separated by a single new line.

Here’s a line for us to start with.

This line is separeted from the one above by two newlines, so it will be a separate paragraph.

This line is also begins a separate paragraph, but…
This line is only separated by a single new line,
and this line is also only separated by a single new line.

Note: \ is better, because it is visible.

At the end, I want to suggest that English would be better than Chinese when you write note by using vim and markdown. Just because spelling check waste time, and there is no any other reason.
The reason encourages me to read and write more English essay.

reference

Markdown Here Cheatsheet
Shortcut key
The author of shortcut-key file is TheCW in Bilibili.

你可能感兴趣的:(随手笔记,Vim,markdown)