MD

MD 写作指北

(Original) The GUIDE USING MARKDOWN LANGUAGE

Posted by KOKILI on August 16, 2021

关于 MD 写作的一些笔记。

链接请参考 👉: Github MD GUIDE / Markdown Guide

Markdown 语法

删除线 Strikethrough

~~blah~~ -> blah

加粗 Bold

**blah** -> blah

斜体 Italic

*blah* -> blah

下划线 Underline

<u>blah</u> -> blah

短代码段 Inline Code

1
 `blah`

多行代码 Multiple Lines

1
2
3
4
5
6
7
8
# 注意三个 ` 之间没有空格,这里为了演示方便

` ` `
blah
blah
blah

` ` `

效果如下

1
2
3
blah
blah
blah

引用 Blockquotes


> quote import ->

quote import

和其他一起用的引用 Mix


> - import ->

  • import

表格 Table

1
2
3
4
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column

效果 ->

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

加标 Lists

Ordered List:

1
2
3
1. One
2. Two
3. Three

效果 ->

  1. One
  2. Two
  3. Three

Unordered List:

1
2
* Start a line with a star
* Profit!

效果 ->

  • Start a line with a star
  • Profit!

或者

1
2
3
4
- Dashes work just as well
- And if you have sub points, put two spaces before the dash or star:
  - Like this
  - And this

效果 ->

  • Dashes work just as well
  • And if you have sub points, put two spaces before the dash or star:
    • Like this
    • And this

插入图片 Image

![name of image] (https://xxxx.xxx)

Collapse Button

1
2
3
4
5
6
7
8
9
10
11
<details><summary>▶CLICK ME</summary>
<p>

## Collapse Content

```python
print("hello world!")```


</p>
</details>

效果 ->

▶CLICK ME

## Collapse Content ```python print("hello world!") ```

[Github](link) ->

Github

插入视频 Add Video

1
2
3
4
5
6
7
8
9
<iframe
    width="640"
    height="480"
    src="https://www.youtube.com/embed/UmX4kyB2wfg"
    frameborder="0"
    allow="autoplay; encrypted-media"
    allowfullscreen
>
</iframe>

上面记得要把youtube的链接地址改一下比如»

https://www.youtube.com/watch?v=LVDy9x4Ff2Y

这个改成-»>

https://www.youtube.com/embed/LVDy9x4Ff2Y