Markdown 笔记

title 1

# title 1

title 2

## title 2

title 3

### title 3

title 4

#### title 4

title 5
##### title 5

title 6
###### title 6

分割线



***

---

代码示例

效果:

var a = 100;
console.log(a);

代码:

``
var a = 100;
console.log(a);
//上下反引号都是3个,这里为避免混乱显示只写了2个
``

效果:

var a = 100;
console.log(a);

代码(句首4个空格):

    var a = 100;
    console.log(a);

列表

  • item 1
  • item 2
    • item 2-1
    • item 2-2
    • item 2-2-1
    • item 2-2-2
    • item 2-3
  • item 3
- item 1
- item 2
  - 2-1
  - 2-2
    - 2-2-1
    - 2-2-2
  - 2-3
- item 3

  • item 1
  • item 2
+ item 1
+ item 2

  • item 1
  • item 2
* item 1
* item 2

  1. item1
  2. item2
1. item1
2. item2


换行

两种方式:
1. 直接换行(在有道云笔记无效,会合并成一行,除非在换行前加两个空格);
2. 换行2次(相当于一个换行,行间距比前者更大)。

Today
is Monday.

Today
is Monday.



待办事项列表

  • [x] item 1
  • [ ] item 2
- [x] item 1
- [ ] item 2

表格

header 1 header 2
row 1 col 1 row 1 col 2
row 2 col 1 row 2 col 2
row 3 col 1 row 3 col 2
header 1 | header 2
-|-
row 1 col 1 | row 1 col 2
row 2 col 1 | row 2 col 2
row 3 col 1 | row 3 col 2

引用

This is a blockquote.
This is the second paragraph in the blockquote.

This is an H2 in a blockquote

> This is a blockquote.
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

斜体粗体

斜体

*斜体*

斜体

_斜体_

粗体

**粗体**

粗体

__粗体__

粗体加斜体

***粗体加斜体***

粗体加斜体

___粗体加斜体___

链接

https://www.baidu.com

<https://www.baidu.com>

Go to Baidu.

Go to [Baidu](https://www.baidu.com).

Markdown 教程一,Markdown 教程二

Markdown [教程一][1],Markdown [教程二][2]。

[1]:http://www.markdown.cn/
[2]:https://forum.fastadmin.net/thread/1629

图片

失效时显示

![失效显示](https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png)

注脚

特殊名词1

特殊名词1[^comment1]
[^comment1]:特殊名词1的注脚内容。

多个词可指向同一个注脚。

特殊字符引用

I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;
instead of decimal-encoded entites like &#8212;.

I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.

字符实体

<body>

&

&lt;body&gt;

&amp;

&mdash;

普通符号实体

! # - + \ *

\! \# \- \+ \\ \*

HTML 代码示范

表格

caption
header 1 header 2
row 1 col 1 row 1 col 2
row 2 col 1 row 2 col 2
<table>
    <caption>caption</caption>
    <tr>
        <th>header 1</th>
        <th>header 2</th>
    </tr>
    <tr>
        <td>row 1 col 1</td>
        <td>row 1 col 2</td>
    </tr>
    <tr>
        <td>row 2 col 1</td>
        <td>row 2 col 2</td>
    </tr>
</table>

title 1

<h1>title 1</h1>

<hr>

列表

  • item 1
  • item 2
    1. aaa
    2. bbb
  • item 3
<ul>
    <li>item 1</li>
    <li>item 2
        <ol>
            <li>aaa</li>
            <li>bbb</li>
        </ol>
    </li>
    <li>item 3</li>
</ul>

item 1
definition 1
definition 1
item 2
definition 2
<dl>
    <dt>item 1</dt>
    <dd>definition 1</dd>
    <dd>definition 1</dd>
    <dt><b>item 2</b></dt>
    <dd>definition 2</dd>
</dl>

  1. 特殊名词1的注脚内容。

猜你喜欢

转载自blog.csdn.net/petezh/article/details/81456709