pascal-lc

须知少日拏云志,曾许人间第一流。

0%

Markdown 教程

Markdown 基本要素

这篇文件意在简要介绍 GitHub Flavored Markdown 写作。

什么是 Markdown?

Markdown 是一种文本格式。你可以用它来控制文档的显示。使用 markdown,你可以创建粗体的文字,斜体的文字,添加图片,并且创建列表 等等。基本上来讲,Markdown 就是普通的文字加上 # 或者 * 等符号。

语法说明

标题

# 这是 <h1> 一级标题

## 这是 <h2> 二级标题

### 这是 <h3> 三级标题

#### 这是 <h4> 四级标题

##### 这是 <h5> 五级标题

###### 这是 <h6> 六级标题

强调

斜体

  • Markdown 源码
*这会是 斜体 的文字*
_这会是 斜体 的文字_
  • 渲染效果
    这会是 斜体 的文字
    这会是 斜体 的文字

粗体

  • Markdown 源码
**这会是 粗体 的文字**
__这会是 粗体 的文字__
  • 渲染效果
    这会是 粗体 的文字
    这会是 粗体 的文字

组合体

Markdown 源码

_你也 **组合** 这些符号_
  • 渲染效果
    你也 组合 这些符号

删除线

Markdown 源码

~~这个文字将会被横线删除~~
  • 渲染效果
    这个文字将会被横线删除

列表

无序列表

Markdown 源码

- 项目 1
- 项目 2
  - 项目 2a
  - 项目 2b
  • 渲染效果

  • 项目 1

  • 项目 2

    • 项目 2a
    • 项目 2b

有序列表

1. 项目 1
2. 项目 2
3. 项目 3
   1. 项目 3a
   2. 项目 3b
  • 渲染效果
  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3a
    2. Item 3b

添加图片

  • Markdown 源码
![GitHub Logo](/images/logo.png "description")
Format: ![Alt Text](url "description")
  • 渲染效果
    百度:百度

链接

  • Markdown 源码
https://github.com - 自动生成!
[GitHub](https://github.com)
  • 渲染效果

百度:百度

引用

正如 Kanye West 所说:

We’re living the future so
the present is our past.

分割线

如下,三个或者更多的

连字符
---

星号
***

下划线
___
  • 渲染效果

行内代码

我觉得你应该在这里使用 <addr> 才对。

代码块

你可以在你的代码上面和下面添加 ``` 来表示代码块。

语法高亮

你可以给你的代码块添加任何一种语言的语法高亮

例如,给 ruby 代码添加语法高亮:

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

任务列表

  • Markdown 源码
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item
  • 渲染效果
  • [x] @mentions, #refs, links, formatting, and tags supported
  • [x] list syntax required (any unordered or ordered list supported)
  • [x] this is a complete item
  • [ ] this is an incomplete item

表格

  • Markdown 源码
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

欢迎关注我的其它发布渠道