轻松记录您
灵感和创意

markdown文件的常用语法

Markdown的官方文档是这样介绍Markdown的:

Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown.(Markdown是一种Web上表现文本的风格,你可以控制文本的展示:粗体字或者是斜体字,插入图片和创建列表,这些都是我们可以使用Markdown做到的事情)

Markdown用途很广泛,例如Github上的ReadMe.md文档就是使用Markdown这个轻量级的文本表示语言书写的,在简书上,你也可以使用这种语言来编辑你的文章,有些前后端对接的API文档也可以使用Markdown语言编写,这样可以使你的文本更加简单易读。

常用语法展示

标题及字体展示

# 标题文本,可以使文本以标题形式展示,共六级标题,# 一级标题,## 二级标题,依次类推

这是一个六级标题的效果

字体展示

*This text will be italic* _This will also be italic_

**This text wiil be bold** __This will also be italic__

效果: This text will be italic This text will be bold

列表展示

* Item 1
* Item 2
  * Item 2a
  * Item 2b (这些代码会让文本呈现无序列表的形式)
  
1. Item 1
1. Item 2
1. Item 3
   1. Item 3a
   2. Item 3b (这些代码会让文本呈现有序列表的形式)

*   A list item with a blockquote:

    > This is a blockquote
    > inside a list item. (当一个列表包含区块的时候,区块需要缩进)

效果:

  • Item 1
  • Item 2
    • Item 2a
    • Item 2b
  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3a
    2. Item 3b
  • A list item with a blockquote:

This is a blockquote

inside a list item.

 

未经允许不得转载:坚果云Markdown » markdown文件的常用语法
分享到: 更多 (0)

坚果云Markdown轻松记录您 灵感和创意

坚果云Markdown下载坚果云Markdown介绍