Markdown入门

发布时间 2023-06-25 16:16:01作者: DuX1ao

Markdown 是一种轻量级的标记语言

Markdown 官方教程

1. 基本语法

标题(Heading)

Markdown语法
# Heading level 1
###### Heading level 6

粗体(Bold)

斜体(Italic)

引用块(Blockquote)

粗体引用块

嵌套引用块

  1. 有序列表(Ordered List)
  2. 有序列表(Ordered List)
  3. 有序列表(Ordered List)
  • 无序列表(Unordered List)
  • 无序列表(Unordered List)
  • 无序列表(Unordered List)

代码(Code)

System.out.println("Hello, world!");

分割线(Horizontal Rule)


链接(Link)

Markdown 官方教程

123456@example.com
I love supporting the EFF.
This is the Markdown Guide.
See the section on code.

图片(Image)

hero.png

带链接图片

hero.png

2. 扩展语法

表格(Table)

表格头 表格头 表格头
文本 文本 文本
文本 文本 文本
文本 文本 文本

代码块(Fenced Code Block)

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

脚注(Footnote)

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

删除线(Strikethrough)
世界是平坦的。 我们现在知道世界是圆的。

任务列表(Task List)


  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. ↩︎