Markdown是一种可以使用普通文本编辑器编写的标记语言,是一种轻量化的标记语言,因此它的使用简单方便,且易于上手。本文作者就来给大家讲解一下Markdown的基本语法。

标题

markdown中标题是一个最基本的工具,使用#符号可以给使用者更加方便的给文章分类,#的个数可以体现标题的类型:


  • H1 :# Header 1
    H2 :## Header 2
    H3 :### Header 3
    H4 :#### Header 4
    H5 :##### Header 5
    H6 :###### Header 6


引用

引用方式十分简单,只需要在一行的最前端加入[>]标志符即可,当然也可以使用两个或三个连续的>来实现各层级别的引用。

一级引用

二级引用

三级引用

列表

1.有序列表:数字加点构成

1.one
2.two
3.three

2.无序列表:使用星号加号或者减号作为列表标记

 -one
 -two
 -three

表格

使用|分割各部分内容:

 First Header | Second Header | Third Header
 ------------ | --------------| ------------
 Content Cell | Content Cell  | Content Cell
 Content Cell | Content Cell  | Content Cell
First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

超链接

【超链接名】(超链接地址“超链接title”)
(title可加可不加)
eg:
谷歌(http://goole.com)
我的博客主页(https://blog.csdn.net/ThinkingOutLoud)

常用语法

下面是我从百度百科复制过来的markdown常用语法,方便大家使用:
markdown的基本使用

相关文章: