Skip to content

Latest commit

 

History

History
925 lines (572 loc) · 14.8 KB

File metadata and controls

925 lines (572 loc) · 14.8 KB

markdown

一级标题

这是markdown的一级标题

二级标题

这是markdown的二级标题

三级标题

这是markdown的三级标题

四级标题

这是markdown的四级标题

五级标题

这是markdown的五级标题

六级标题

这是markdown的六级标题

可选语法:一级标题

可选语法:二级标题

HTML

这是html的一级标题

这是html的一级标题

这是html的二级标题

这是html的二级标题

这是html的三级标题

这是html的三级标题

这是html的四级标题

这是html的四级标题

这是html的五级标题

这是html的五级标题

这是html的六级标题

这是html的六级标题

段落

markdown 段落

I really like using Markdown 段落段落.

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

HTML 段落

I really like using Markdown段落段落.

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

换行语法

markdown 换行语法

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

html 换行语法

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

强调语法

markdown 强调语法

  • 粗体

I just love bold text.

I just love bold text.

Loveisbold

  • 斜体

Italicized text is the cat's meow.

Italicized text is the cat's meow.

Acatmeow

  • 粗体(Bold)和斜体(Italic)

This text is really important.

This text is really important.

This text is really important.

This text is really important.

This is reallyveryimportant text.

html 强调语法

  • 粗体

I just love bold text.

I just love bold text.

Loveisbold

  • 斜体

Italicized text is the cat's meow.

Italicized text is the cat's meow.

Acatmeow

  • 粗体(Bold)和斜体(Italic)

This text is really important.

This text is really important.

This text is really important.

This text is really important.

This is reallyveryimportant text.

引用语法

markdown引用语法

单个段落引用

Dorothy followed her through many of the beautiful rooms in her castle.

多个段落引用

Dorothy followed her through many of the beautiful rooms in her castle.

The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

嵌套快引用

Dorothy followed her through many of the beautiful rooms in her castle.

The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

带有其他元素的快引用

The quarterly results look great!

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

Everything is going according to plan.

列表语法

markdown 列表语法

有序列表1

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表2

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表3

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表4

  1. First item
  2. Second item
  3. Third item
    1. Indented item
    2. Indented item
  4. Fourth item

无序列表1

  • First item
  • Second item
  • Third item
  • Fourth item

无序列表2

  • First item
  • Second item
  • Third item
  • Fourth item

无序列表3

  • First item
  • Second item
  • Third item
  • Fourth ite

无序列表4

  • First item
  • Second item
  • Third item
    • Indented item
    • Indented item
  • Fourth item

在列表中嵌套其他元素

段落

  • This is the first list item.

  • Here's the second list item.

    I need to add another paragraph below the second list item.

  • And here's the third list item.

引用块

  • This is the first list item.

  • Here's the second list item.

    A blockquote would look great below the second list item.

  • And here's the third list item.

代码块

  1. Open the file.

  2. Find the following code block on line 21:

    <html>
      <head>
        <title>Test</title>
      </head>
    
  3. Update the title to match the name of your website.

图片

  1. Open the file containing the Linux mascot.

  2. Marvel at its beauty.

    alt text

  3. Close the file.

列表

  1. First item
  2. Second item
  3. Third item
    • Indented item
    • Indented item
  4. Fourth item

html 列表语法

有序列表1

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表2

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表3

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

有序列表4

  1. First item
  2. Second item
  3. Third item
    1. Indented item
    2. Indented item
  4. Fourth item

无序列表1

  • First item
  • Second item
  • Third item
  • Fourth item

无序列表2

  • First item
  • Second item
  • Third item
  • Fourth item

无序列表3

  • First item
  • Second item
  • Third item
  • Fourth item

无序列表4

  • First item
  • Second item
  • Third item
    • Indented item
    • Indented item
  • Fourth item

代码语法

markdown语法

At the command prompt, type nano.

转义反引号

Use `code` in your Markdown file.

代码块

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

html语法

At the command prompt, type nano.

转义反引号

Use code in your Markdown file.

markdown分隔线

星号分隔线


破折号分隔线


下划线分隔线


end

markdown连接语法

这是一个链接 Markdown语法。

给链接增加title

这是一个链接 Markdown语法。

对应的HTML代码:超链接显示名

网址和Email地址

https://markdown.com.cn

fake@example.com

带格式化的链接

I love supporting the EFF.

This is the Markdown Guide.

See the section on code.

引用类型连接

我推荐你读 霍比特人 这本书。

我推荐你读 [霍比特人] 2 这本书。

markdown图片语法

这是图片

对应的HTML代码:

图片alt

链接图片

沙漠中的岩石图片

markdown转义字符语法

* Without the backslash, this would be a bullet in an unordered list:\ 、 ` 、 * 、 ` 、 _ 、 {} 、 { 、 } 、 [] 、 [ 、 ] 、 () 、 ( 、 ) 、 # 、 + 、 - 、 - 、 . 、 ! 、 | 、 .

特殊字符自动转义

Markdown 内嵌 HTML 标签

This word is bold. This word is italic.

区块标签

This is a regular paragraph.

Foo

This is another regular paragraph.

markdown表格

默认

Syntax Description
Header Title
Paragraph Text

默认-单元格宽度不一致

Syntax Description
Header Title
Paragraph Text

左对齐表格

Syntax Description
Header Title
Paragraph Text

右对齐表格

Syntax Description
Header Title
Paragraph Text

中心对齐

Syntax Description
Header Title
Paragraph Text

格式化表格中的文字

Syntax Description
Header https://markdown.com.cn
Markdown语法 Text

围栏代码块

三个反引号(```)

text的

这是一段简短的文本。。。红红火火恍恍惚惚哈哈哈哈哈哈哈哈哈哈哈哈哈哈

json

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

c的

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

c++的

#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

cpp的

#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

java的

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

python的

print("Hello, World!")

html的

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Hello World</title>
</head>
<body>
    <h1>Hello, World!</h1>
</body>
</html>

三个波浪号(~~~)

text的

这是一段简短的文本。。。红红火火恍恍惚惚哈哈哈哈哈哈哈哈哈哈哈哈哈哈

json

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

c的

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

c++的

#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

cpp的

#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

java的

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

python的

print("Hello, World!")

html的

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Hello World</title>
</head>
<body>
    <h1>Hello, World!</h1>
</body>
</html>

markdown 脚注

Here's a simple footnote,1 and here's a longer one.2

Indent paragraphs to include them in the footnote.

{ my code }

Add as many paragraphs as you like.

markdown标题编号

My Great Heading {#custom-id}

My Great Heading

连接到标题idcustom-id

Heading IDs

markdown定义列表

markdown语法

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.

html

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.

markdown删除线

世界是平坦的。 我们现在知道世界是圆的。

markdown任务列表语法

  • Write the press release
  • Update the website
  • Contact the media

Markdown 使用 Emoji 表情

复制和粘贴表情符号

✅

🥹

🤍

使用表情符号简码

去露营了! ⛺ 很快回来。

真好笑! 😂

😂

😍

自动网址连接

http://www.example.com

禁用自动URL连接

http://www.example.com

变通

markdown下滑线

一些文字 将被加下划线。

markdown缩进(Tab)

    这是一个缩进的段落。

Markdown 文字居中

这段文字居中显示。

Markdown 文字颜色

这段文字是红色的!

这段文字是蓝色的。

Markdown 注释

这是可见的段落。

这是另一个可见的段落。

Markdown 警告

⚠️ 警告: 不要按下大红色按钮!

📝 注意: 日出很美。

💡 提示: 记得珍惜生活中的小事。

Markdown 调整图片大小

alt text

Markdown 图片标题

1、

描述文本

这是一张描述图片。

2、

描述文本
这是一张描述图片。

Markdown 新标签打开链接

学习 Markdown!

Markdown 符号(特殊字符)

版权 (©) — © 注册商标 (®) — ® 商标 (™) — ™ 欧元 (€) — € 左箭头 (←) — ← 上箭头 (↑) — ↑ 右箭头 (→) — → 下箭头 (↓) — ↓ 度数 (°) — ° 圆周率 (π) — π

Markdown 表格格式

表格内换行

语法 描述
换行 第一段。

第二段。

表格内列表

语法 描述
列表
  • 项目一
  • 项目二

Markdown 目录

目录

  • 警告
  • [调整图片大小](#Markdown 调整图片大小)
  • [新标签打开链接](#Markdown 新标签打开链接)
  • [更改文字颜色](#Markdown 文字颜色)

Markdown 插入视频

markdown:

视频预览

html:

<iframe src="https://www.bilibili.com/video/BV1ATwTzUEQ4/?spm_id_from=333.1007.tianma.3-3-9.click" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>

Footnotes

  1. This is the first footnote. ↩

  2. Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    { my code }

    Add as many paragraphs as you like. ↩