Markdown语法 (转载)
https://www.jianshu.com/p/191d1e21f7ed
Markdown基本语法
Markdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式。
相比WYSIWYG编辑器
优点:
1、因为是纯文本,所以只要支持Markdown的地方都能获得一样的编辑效果,可以让作者摆脱排版的困扰,专心写作。
2、操作简单。比如:WYSIWYG编辑时标记个标题,先选中内容,再点击导航栏的标题按钮,选择几级标题。要三个步骤。而Markdown只需要在标题内容前加#即可
缺点:
1、需要记一些语法(当然,是很简单。五分钟学会)。
2、有些平台不支持Markdown编辑模式。
还好,简书是支持Markdown编辑模式的。
开启方式:设置->默认编辑器->Markdown编辑器
一、标题
在想要设置为标题的文字前面加#来表示
一个#是一级标题,二个#是二级标题,以此类推。支持六级标题。
注:标准语法一般在#后跟个空格再写文字,貌似简书不加空格也行。
示例:
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
效果如下:
这是一级标题
这是二级标题
这是三级标题
这是四级标题
这是五级标题
这是六级标题
二、字体
-
加粗
要加粗的文字左右分别用两个*号包起来
-
斜体
要倾斜的文字左右分别用一个*号包起来
-
斜体加粗
要倾斜和加粗的文字左右分别用三个*号包起来
-
删除线
要加删除线的文字左右分别用两个~~号包起来
示例:
**这是加粗的文字**
*这是倾斜的文字*`
***这是斜体加粗的文字***
~~这是加删除线的文字~~
效果如下:
这是加粗的文字
这是倾斜的文字
这是斜体加粗的文字
这是加删除线的文字
三、引用
在引用的文字前加>即可。引用也可以嵌套,如加两个>>三个>>>
n个...
貌似可以一直加下去,但没神马卵用
示例:
>这是引用的内容
>>这是引用的内容
>>>>>>>>>>这是引用的内容
效果如下:
这是引用的内容
这是引用的内容
这是引用的内容
四、分割线
三个或者三个以上的 - 或者 * 都可以。
示例:
---
----
***
*****
效果如下:
可以看到,显示效果是一样的。
五、图片
语法:
![图片alt](图片地址 ''图片title'')
图片alt就是显示在图片下面的文字,相当于对图片内容的解释。
图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加
示例:
![blockchain](https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/
u=702257389,1274025419&fm=27&gp=0.jpg "区块链")
效果如下:
上传本地图片直接点击导航栏的图片标志,选择图片即可
六、超链接
语法:
[超链接名](超链接地址 "超链接title")
title可加可不加
示例:
[简书](http://jianshu.com)
[百度](http://baidu.com)
效果如下:
注:Markdown本身语法不支持链接在新页面中打开,貌似简书做了处理,是可以的。别的平台可能就不行了,如果想要在新页面中打开的话可以用html语言的a标签代替。
<a href="超链接地址" target="_blank">超链接名</a>
示例
<a href="https://www.jianshu.com/u/1f5ac0cf6a8b" target="_blank">简书</a>
七、列表
-
无序列表
语法:
无序列表用 - + * 任何一种都可以
- 列表内容 + 列表内容 * 列表内容
注意:- + * 跟内容之间都要有一个空格
效果如下:
- 列表内容
- 列表内容
- 列表内容
-
有序列表
语法:
数字加点
1.列表内容 2.列表内容 3.列表内容
注意:序号跟内容之间要有空格
效果如下:
1.列表内容
2.列表内容
3.列表内容
-
列表嵌套
上一级和下一级之间敲三个空格即可
-
一级无序列表内容
- 二级无序列表内容
- 二级无序列表内容
- 二级无序列表内容
-
一级无序列表内容
- 二级有序列表内容
- 二级有序列表内容
- 二级有序列表内容
-
一级有序列表内容
- 二级无序列表内容
- 二级无序列表内容
- 二级无序列表内容
-
一级有序列表内容
- 二级有序列表内容
- 二级有序列表内容
- 二级有序列表内容
八、表格
语法:
<p>示例:</p> <pre class="line-numbers language-ruby"><code class=" language-ruby">姓名<span class="token operator">|</span>技能<span class="token operator">|</span>排行 <span class="token operator">--</span><span class="token operator">|</span><span class="token punctuation">:</span><span class="token operator">--</span><span class="token punctuation">:</span><span class="token operator">|</span><span class="token operator">--</span><span class="token punctuation">:</span> 刘备<span class="token operator">|</span>哭<span class="token operator">|</span>大哥 关羽<span class="token operator">|</span>打<span class="token operator">|</span>二哥 张飞<span class="token operator">|</span>骂<span class="token operator">|</span>三弟 <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <p>效果如下:</p> <table> <thead> <tr> <th>姓名</th> <th style="text-align:center">技能</th> <th style="text-align:right">排行</th> </tr> </thead> <tbody> <tr> <td>刘备</td> <td style="text-align:center">哭</td> <td style="text-align:right">大哥</td> </tr> <tr> <td>关羽</td> <td style="text-align:center">打</td> <td style="text-align:right">二哥</td> </tr> <tr> <td>张飞</td> <td style="text-align:center">骂</td> <td style="text-align:right">三弟</td> </tr> </tbody> </table> <h1>九、代码</h1> <p>语法:<br> 单行代码:代码之间分别用一个反引号包起来</p> <pre class="line-numbers language-go"><code class=" language-go"> <span class="token string">`代码内容`</span> <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <p>代码块:代码之间分别用三个反引号包起来,且两边的反引号单独占一行</p> <pre class="line-numbers language-go"><code class=" language-go"><span class="token punctuation">(</span><span class="token string">``</span><span class="token string">`) 代码... 代码... 代码... (`</span><span class="token string">``</span><span class="token punctuation">)</span> <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <blockquote> <p>注:为了防止转译,前后三个反引号处加了小括号,实际是没有的。这里只是用来演示,实际中去掉两边小括号即可。</p> </blockquote> <p>示例:</p> <p>单行代码</p> <pre class="line-numbers language-go"><code class=" language-go"><span class="token string">`create database hero;`</span> <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <p>代码块</p> <pre class="line-numbers language-kotlin"><code class=" language-kotlin"><span class="token punctuation">(</span>```<span class="token punctuation">)</span> function <span class="token keyword">fun</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span> echo <span class="token string">"这是一句非常牛逼的代码"</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token keyword">fun</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">(</span>```<span class="token punctuation">)</span> <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <p>效果如下:</p> <p>单行代码</p> <p><code>create database hero;</code></p> <p>代码块</p> <pre class="line-numbers language-kotlin"><code class=" language-kotlin">function <span class="token keyword">fun</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span> echo <span class="token string">"这是一句非常牛逼的代码"</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token keyword">fun</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <h1>十、流程图</h1> <pre class="line-numbers language-php"><code class=" language-php">```flow st<span class="token operator">=</span><span class="token operator">></span>start<span class="token punctuation">:</span> 开始 op<span class="token operator">=</span><span class="token operator">></span>operation<span class="token punctuation">:</span> My Operation cond<span class="token operator">=</span><span class="token operator">></span>condition<span class="token punctuation">:</span> Yes <span class="token keyword">or</span> No<span class="token operator">?</span> e<span class="token operator">=</span><span class="token operator">></span>end st<span class="token operator">-</span><span class="token operator">></span><span class="token property">op</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">cond</span> <span class="token function">cond</span><span class="token punctuation">(</span>yes<span class="token punctuation">)</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">e</span> <span class="token function">cond</span><span class="token punctuation">(</span>no<span class="token punctuation">)</span><span class="token operator">-</span><span class="token operator">></span><span class="token property">op</span> <span class="token operator">&</span>``` <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code><button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button></pre> <p>效果如下:<br> 简书不支持流程图,所以截了个图</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 467px;"> <div class="image-container-fill" style="padding-bottom: 62.18%;"></div> <div class="image-view" data-width="751" data-height="467"><img data-original-src="//upload-images.jianshu.io/upload_images/6860761-9d9524ba31047696.png" data-original-width="751" data-original-height="467" data-original-format="" data-original-filesize="15560" class="image-loading" data-image-index="1" style="cursor: zoom-in;"></div> </div> <div class="image-caption">流程图.png</div> </div> </article><div></div><div class="_1kCBjS"><div class="_18vaTa"><div class="_3BUZPB"><div class="_2Bo4Th" role="button" tabindex="-1" aria-label="给文章点赞"><i aria-label="ic-like" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-like"></use></svg></i></div><span class="_1LOh_5" role="button" tabindex="-1" aria-label="查看点赞列表">1675人点赞<i aria-label="icon: right" class="anticon anticon-right"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></i></span></div><div class="_3BUZPB"><div class="_2Bo4Th" role="button" tabindex="-1"><i aria-label="ic-dislike" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-dislike"></use></svg></i></div><span class="_1LOh_5" role="button" tabindex="-1">1人踩<i aria-label="icon: right" class="anticon anticon-right"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></i></span></div></div><div class="_18vaTa"><a class="_3BUZPB _1x1ok9 _1OhGeD" href="/nb/21225181" target="_blank" rel="noopener noreferrer"><i aria-label="ic-notebook" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-notebook"></use></svg></i><span>编程</span></a><div class="_3BUZPB ant-dropdown-trigger"><div class="_2Bo4Th"><i aria-label="ic-others" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-others"></use></svg></i></div></div></div></div><div class="_19DgIp" style="margin-top:24px;margin-bottom:24px"></div><div class="_3W59v5"><div class="Uz-vZq"><div class="VwEQ52"><a class="_1OhGeD" href="/u/1f5ac0cf6a8b" target="_blank" rel="noopener noreferrer"><img class="_3nYIo3" src="//upload.jianshu.io/users/upload_avatars/6860761/b343643c-5ced-4421-ab58-1274e7bfe704?imageMogr2/auto-orient/strip|imageView2/1/w/120/h/120/format/webp" alt=" "></a><div class="_2lfNuF"><div class="Cqpr1X" title="高鸿祥"><a class="_1OhGeD" href="/u/1f5ac0cf6a8b" target="_blank" rel="noopener noreferrer">高鸿祥</a></div><div class="_2qBui4"><span>拥有220钻 (约23.44元)</span></div></div><button data-locale="zh-CN" type="button" class="_1OyPqC _3Mi9q9"><span>关注</span></button></div><div class="VwEQ52 _13lIbp"><div class="_2lfNuF"><div class="Cqpr1X">"小礼物走一走,来简书关注我"</div><div class="_2qBui4"><a class="H4XBOO _1OhGeD" href="/u/c08977537fb2" target="_blank" rel="noopener noreferrer"><img src="http://upload.jianshu.io/users/upload_avatars/11143778/5c87d213-948c-40e5-8e2a-193107852ee0.jpg" alt=" "></a><span class="_191KSt" role="button" tabindex="-1" aria-label="查看赞赏人列表">共1人赞赏</span></div></div><button type="button" class="_1OyPqC _3Mi9q9"><span>赞赏</span></button></div></div></div></section><div id="note-page-comment"><div class="lazyload-placeholder"></div></div><section class="ouvJEz"><h3 class="QxT4hD"><span>被以下专题收入,发现更多相似内容</span></h3><div class="_2Nttfz"><a class="_3s5t0Q _1OhGeD" href="/c/140e1de9152a" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/1630694/00e93901213fb80ef9ceac7132d12f2eb938947d.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">markdown</span></a><a class="_3s5t0Q _1OhGeD" href="/c/34d024cdc8b4" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/1636439/OmniGraffle.png?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">OminiGr...</span></a><a class="_3s5t0Q _1OhGeD" href="/c/aa600f4bce76" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/601962/timg.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">Python</span></a><a class="_3s5t0Q _1OhGeD" href="/c/975781faba19" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/17898/1.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">方法论</span></a><a class="_3s5t0Q _1OhGeD" href="/c/c5c8e563e694" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/1643987/1121472.png?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">markdown</span></a><a class="_3s5t0Q _1OhGeD" href="/c/9cff95747636" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/349156/IMG_0098.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">Python相关点</span></a><a class="_3s5t0Q _1OhGeD" href="/c/15612e6543ef" target="_blank" rel="noopener noreferrer"><img class="_2vEwGY" src="//upload.jianshu.io/collections/images/1646384/timg_(2).jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_2-Djqu">工具集</span></a><div class="H7E3vT" role="button" tabindex="-1" aria-label="展开更多"><span>展开更多</span><i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></i></div></div><div class="_19DgIp" style="margin-top: 32px; margin-bottom: 32px;"></div><h3 class="QxT4hD"><span>推荐阅读</span><a class="_29KFEa _1OhGeD" href="/" target="_blank" rel="noopener noreferrer">更多精彩内容<i aria-label="ic-right" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-right"></use></svg></i></a></h3><ul class="_1iTR78"><li class="_11jppn"><div class="JB6qEE"><div class="em6wEs" title="Markdown基本语法" role="heading" aria-level="4"><a class="_2voXH8 _1OhGeD" href="/p/0364fd847b14" target="_blank" rel="noopener noreferrer">Markdown基本语法</a></div><div class="_3fvgn4">#标题1##标题2###3级标题一级标题===一级标题========二级标题---<&©<####段落引用> T...</div><div class="_1pJt6F"><a class="_3IWz1q _1OhGeD" href="/u/cbf137cbddc2" target="_blank" rel="noopener noreferrer"><img class="_34VC_H" src="//upload.jianshu.io/users/upload_avatars/1345274/649a34badc53.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_3tPsL6">oking</span></a></div></div></li><li class="_11jppn"><div class="JB6qEE"><div class="em6wEs" title="Markdown基本语法配合基本使用" role="heading" aria-level="4"><a class="_2voXH8 _1OhGeD" href="/p/f256ab158958" target="_blank" rel="noopener noreferrer">Markdown基本语法配合基本使用</a></div><div class="_3fvgn4">Markdown是什么? Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使...</div><div class="_1pJt6F"><a class="_3IWz1q _1OhGeD" href="/u/c5bac8c764c8" target="_blank" rel="noopener noreferrer"><img class="_34VC_H" src="//upload.jianshu.io/users/upload_avatars/8031371/1999fb7e-ad2c-401f-9e1d-0b30c0cb3ebd.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_3tPsL6">浅蓝色的麻吉</span></a></div></div><a class="_10MMAm _1OhGeD" href="/p/f256ab158958" target="_blank" rel="noopener noreferrer"><img class="_3zGDUj" src="//upload-images.jianshu.io/upload_images/8031371-8946d376ac6cc4ff.png?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/240/format/webp" alt=""></a></li><li class="_11jppn"><div class="JB6qEE"><div class="em6wEs" title="MarkDown基本语法" role="heading" aria-level="4"><a class="_2voXH8 _1OhGeD" href="/p/de09015f57a6" target="_blank" rel="noopener noreferrer">MarkDown基本语法</a></div><div class="_3fvgn4">欢迎访问我的个人博客(Wisink's Blog) Hexo博客生成器需要通过编译MarkDown格式的文件生成h...</div><div class="_1pJt6F"><a class="_3IWz1q _1OhGeD" href="/u/207e0e7998d8" target="_blank" rel="noopener noreferrer"><img class="_34VC_H" src="//upload.jianshu.io/users/upload_avatars/6073010/08c0fd73-6937-45d1-af7c-9910e1460a84.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_3tPsL6">Wisink</span></a></div></div><a class="_10MMAm _1OhGeD" href="/p/de09015f57a6" target="_blank" rel="noopener noreferrer"><img class="_3zGDUj" src="//upload-images.jianshu.io/upload_images/6073010-508dd04512afe937.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/240/format/webp" alt=""></a></li><li class="_11jppn"><div class="JB6qEE"><div class="em6wEs" title="简书常用markdown基本语法" role="heading" aria-level="4"><a class="_2voXH8 _1OhGeD" href="/p/44ad4a22bc23" target="_blank" rel="noopener noreferrer">简书常用markdown基本语法</a></div><div class="_3fvgn4">1.设置标题Markdown语法: 预览效果: 一级标题二级标题三级标题四级标题五级标题六级标题 2.设置超链接M...</div><div class="_1pJt6F"><a class="_3IWz1q _1OhGeD" href="/u/471dc120cbb3" target="_blank" rel="noopener noreferrer"><img class="_34VC_H" src="//upload.jianshu.io/users/upload_avatars/3067748/ad3e3fc9-f49b-4c68-a5f8-7fd538954be6.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_3tPsL6">我想成为创业者</span></a></div></div><a class="_10MMAm _1OhGeD" href="/p/44ad4a22bc23" target="_blank" rel="noopener noreferrer"><img class="_3zGDUj" src="//upload-images.jianshu.io/upload_images/3067748-3de89bc456efcd3d.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/240/format/webp" alt=""></a></li><li class="_11jppn"><div class="JB6qEE"><div class="em6wEs" title="Markdown基本语法" role="heading" aria-level="4"><a class="_2voXH8 _1OhGeD" href="/p/784df455d290" target="_blank" rel="noopener noreferrer">Markdown基本语法</a></div><div class="_3fvgn4">一级标题 语法:#一级标题 二级标题: 语法:##二级标题 三级标题: 语法:###三级标题 四级标题: 语法:#...</div><div class="_1pJt6F"><a class="_3IWz1q _1OhGeD" href="/u/0039ed781cc6" target="_blank" rel="noopener noreferrer"><img class="_34VC_H" src="//upload.jianshu.io/users/upload_avatars/1716507/6c00365227ae.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/48/h/48/format/webp" alt=""><span class="_3tPsL6">李不言被占用了</span></a></div></div></li></ul></section></div><aside class="_2OwGUo"><section class="_3Z3nHf"><div class="_3Oo-T1"><a class="_1OhGeD" href="/u/1f5ac0cf6a8b" target="_blank" rel="noopener noreferrer"><img class="_3T9iJQ" src="//upload.jianshu.io/users/upload_avatars/6860761/b343643c-5ced-4421-ab58-1274e7bfe704?imageMogr2/auto-orient/strip|imageView2/1/w/90/h/90/format/webp" alt=""></a><div class="_32ZTTG"><div class="_2O0T_w"><div class="_2v-h3G"><span class="_2vh4fr" title="高鸿祥"><a class="_1OhGeD" href="/u/1f5ac0cf6a8b" target="_blank" rel="noopener noreferrer">高鸿祥</a></span></div><button data-locale="zh-CN" type="button" class="tzrf9N _1OyPqC _3Mi9q9 _34692-"><span>关注</span></button></div><div class="_1pXc22">拥有220钻 (约23.44元)</div></div></div><div class="_19DgIp"></div><div class="_26Hhi2" role="listitem"><div class="_3TNGId" title="复苏"><a class="_2ER8Tt _1OhGeD" href="/p/82ff35f9429b" target="_blank" rel="noopener noreferrer">复苏</a></div><div class="DfvGP9">阅读 181</div></div><div class="_26Hhi2" role="listitem"><div class="_3TNGId" title="你有力量接纳真实吗?"><a class="_2ER8Tt _1OhGeD" href="/p/5a44c92c27c8" target="_blank" rel="noopener noreferrer">你有力量接纳真实吗?</a></div><div class="DfvGP9">阅读 166</div></div></section><section class="_3Z3nHf"><h3 class="QHRnq8 QxT4hD"><span>精彩继续</span></h3><div class="cuOxAY _3Arx4A" role="listitem"><div class="_21cGJh"><div class="_3L5YSq" title="做了这么久的程序员,你知道为什么会有Lambda表达式吗?"><a class="_1-HJSV _1OhGeD" href="/p/be81b1987af1" target="_blank" rel="noopener noreferrer">做了这么久的程序员,你知道为什么会有Lambda表达式吗?</a></div><div class="_19haGh">阅读 10391</div></div><a class="M7wcSm _1OhGeD" href="/p/be81b1987af1" target="_blank" rel="noopener noreferrer"><img class="_1w8ebu" src="https://upload-images.jianshu.io/upload_images/15590149-c541bc6f667b8ac4?imageMogr2/auto-orient/strip|imageView2/1/w/180/h/128/format/webp" alt=""></a></div><div class="cuOxAY _3Arx4A" role="listitem"><div class="_21cGJh"><div class="_3L5YSq" title="微信聊天潜规则:这样跟你说话的人,要珍惜"><a class="_1-HJSV _1OhGeD" href="/p/94ae753fb07b" target="_blank" rel="noopener noreferrer">微信聊天潜规则:这样跟你说话的人,要珍惜</a></div><div class="_19haGh">阅读 6230</div></div><a class="M7wcSm _1OhGeD" href="/p/94ae753fb07b" target="_blank" rel="noopener noreferrer"><img class="_1w8ebu" src="https://upload-images.jianshu.io/upload_images/1202579-16043a5399ec8098.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/180/h/128/format/webp" alt=""></a></div></section><div><div aria-hidden="true" style="width: 260px; height: 0px;"></div><div class="ant-affix" style="position: fixed; top: 66px; width: 260px; height: 0px;"></div></div></aside></div></div><footer style="width:100%"><div class="_2xr8G8"><div class="_1Jdfvb"><div class="TDvCqd"><textarea class="W2TSX_" placeholder="写下你的评论..."></textarea></div><div class="-pXE92"><div class="_3nj4GN" role="button" tabindex="0" aria-label="添加评论"><i aria-label="ic-reply" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-reply"></use></svg></i><span>评论<!-- -->141</span></div><div class="_3nj4GN" role="button" tabindex="0" aria-label="给文章点赞"><i aria-label="ic-like" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-like"></use></svg></i><span>赞<!-- -->1675</span></div><div class="_3nj4GN ant-dropdown-trigger" role="button" tabindex="0" aria-label="更多操作"><i aria-label="ic-others" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-others"></use></svg></i></div></div></div></div><div class="_1LI0En" style="height: 56px;"></div></footer><div class="_3Pnjry"><div class="_1pUUKr"><div class="_2VdqdF" role="button" tabindex="-1" aria-label="给文章点赞"><i aria-label="ic-like" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-like"></use></svg></i></div><div class="P63n6G"><div class="_2LKTFF"><span class="_1GPnWJ" role="button" tabindex="-1" aria-label="查看点赞列表">1675<!-- -->赞</span><span class="_1GPnWJ">1676<!-- -->赞</span></div></div></div><div class="_1pUUKr"><div class="_2VdqdF" role="button" tabindex="-1" aria-label="赞赏作者"><i aria-label="ic-shang" class="anticon"><svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#ic-shang"></use></svg></i></div><div class="P63n6G" role="button" tabindex="-1" aria-label="查看赞赏列表">1<!-- -->赞赏</div></div></div></div><script async="" src="https://hm.baidu.com/hm.js?0c0e9d9b1e7d617b3e6842e85b9fb068"></script><script id="__NEXT_DATA__" type="application/json">{"dataManager":"[]","props":{"isServer":true,"initialState":{"global":{"fontType":"black","locale":"zh-CN","readMode":"day","seoList":[{"id":3013019,"title":"Markdown基本语法","slug":"0364fd847b14","public_abbr":"#标题1##标题2###3级标题一级标题===一级标题========二级标题---\u003c\u0026©\u003c####段落引用\u003e T...","share_image_url":"","user":{"id":1345274,"nickname":"oking","slug":"cbf137cbddc2","avatar":"http://upload.jianshu.io/users/upload_avatars/1345274/649a34badc53.jpg"}},{"id":17367721,"title":"Markdown基本语法配合基本使用","slug":"f256ab158958","public_abbr":"Markdown是什么? Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使...","share_image_url":"//upload-images.jianshu.io/upload_images/8031371-8946d376ac6cc4ff.png","user":{"id":8031371,"nickname":"浅蓝色的麻吉","slug":"c5bac8c764c8","avatar":"http://upload.jianshu.io/users/upload_avatars/8031371/1999fb7e-ad2c-401f-9e1d-0b30c0cb3ebd.jpg"}},{"id":13402728,"title":"MarkDown基本语法","slug":"de09015f57a6","public_abbr":"欢迎访问我的个人博客(Wisink's Blog) Hexo博客生成器需要通过编译MarkDown格式的文件生成h...","share_image_url":"//upload-images.jianshu.io/upload_images/6073010-508dd04512afe937.jpg","user":{"id":6073010,"nickname":"Wisink","slug":"207e0e7998d8","avatar":"http://upload.jianshu.io/users/upload_avatars/6073010/08c0fd73-6937-45d1-af7c-9910e1460a84.jpg"}},{"id":13640233,"title":"简书常用markdown基本语法","slug":"44ad4a22bc23","public_abbr":"1.设置标题Markdown语法: 预览效果: 一级标题二级标题三级标题四级标题五级标题六级标题 2.设置超链接M...","share_image_url":"//upload-images.jianshu.io/upload_images/3067748-3de89bc456efcd3d.jpg","user":{"id":3067748,"nickname":"我想成为创业者","slug":"471dc120cbb3","avatar":"http://upload.jianshu.io/users/upload_avatars/3067748/ad3e3fc9-f49b-4c68-a5f8-7fd538954be6.jpg"}},{"id":3196614,"title":"Markdown基本语法","slug":"784df455d290","public_abbr":"一级标题 语法:#一级标题 二级标题: 语法:##二级标题 三级标题: 语法:###三级标题 四级标题: 语法:#...","share_image_url":"","user":{"id":1716507,"nickname":"李不言被占用了","slug":"0039ed781cc6","avatar":"http://upload.jianshu.io/users/upload_avatars/1716507/6c00365227ae.jpg"}}],"done":false,"$ua":{"value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36","isIE11":false,"earlyIE":null,"chrome":"77.0","firefox":null,"safari":null,"isMac":false},"$diamondRate":{"displayable":false,"rate":0},"$modal":{"ContributeModal":false,"RewardListModal":false,"PayModal":false,"DislikeListModal":false,"CollectionModal":false,"LikeListModal":false,"ReportModal":false,"QRCodeShareModal":false,"BookCatalogModal":false,"RewardModal":false}},"note":{"data":{"is_author":false,"last_updated_at":1542650029,"public_title":"Markdown基本语法","purchased":false,"liked_note":false,"comments_count":141,"free_content":"\u003cp\u003eMarkdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式。\u003c/p\u003e\n\u003cp\u003e相比WYSIWYG编辑器\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e优点:\u003c/strong\u003e\u003cbr\u003e\n1、因为是纯文本,所以只要支持Markdown的地方都能获得一样的编辑效果,可以让作者摆脱排版的困扰,专心写作。\u003cbr\u003e\n2、操作简单。比如:WYSIWYG编辑时标记个标题,先选中内容,再点击导航栏的标题按钮,选择几级标题。要三个步骤。而Markdown只需要在标题内容前加#即可\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e缺点:\u003c/strong\u003e\u003cbr\u003e\n1、需要记一些语法(当然,是很简单。五分钟学会)。\u003cbr\u003e\n2、有些平台不支持Markdown编辑模式。\u003c/p\u003e\n\u003cp\u003e还好,简书是支持Markdown编辑模式的。\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e开启方式:设置-\u0026gt;默认编辑器-\u0026gt;Markdown编辑器\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch1\u003e一、标题\u003c/h1\u003e\n\u003cp\u003e在想要设置为标题的文字前面加#来表示\u003cbr\u003e\n一个#是一级标题,二个#是二级标题,以此类推。支持六级标题。\u003c/p\u003e\n\u003cp\u003e注:标准语法一般在#后跟个空格再写文字,貌似简书不加空格也行。\u003c/p\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e# 这是一级标题\n## 这是二级标题\n### 这是三级标题\n#### 这是四级标题\n##### 这是五级标题\n###### 这是六级标题\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003ch1\u003e这是一级标题\u003c/h1\u003e\n\u003ch2\u003e这是二级标题\u003c/h2\u003e\n\u003ch3\u003e这是三级标题\u003c/h3\u003e\n\u003ch4\u003e这是四级标题\u003c/h4\u003e\n\u003ch5\u003e这是五级标题\u003c/h5\u003e\n\u003ch6\u003e这是六级标题\u003c/h6\u003e\n\u003chr\u003e\n\u003ch1\u003e二、字体\u003c/h1\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e加粗\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e要加粗的文字左右分别用两个*号包起来\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e斜体\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e要倾斜的文字左右分别用一个*号包起来\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e斜体加粗\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e要倾斜和加粗的文字左右分别用三个*号包起来\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e删除线\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e要加删除线的文字左右分别用两个~~号包起来\u003c/p\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e**这是加粗的文字**\n*这是倾斜的文字*`\n***这是斜体加粗的文字***\n~~这是加删除线的文字~~\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e这是加粗的文字\u003c/strong\u003e\u003cbr\u003e\n\u003cem\u003e这是倾斜的文字\u003c/em\u003e\u003cbr\u003e\n\u003cstrong\u003e\u003cem\u003e这是斜体加粗的文字\u003c/em\u003e\u003c/strong\u003e\u003cbr\u003e\n\u003cdel\u003e这是加删除线的文字\u003c/del\u003e\u003c/p\u003e\n\u003chr\u003e\n\u003ch1\u003e三、引用\u003c/h1\u003e\n\u003cp\u003e在引用的文字前加\u0026gt;即可。引用也可以嵌套,如加两个\u0026gt;\u0026gt;三个\u0026gt;\u0026gt;\u0026gt;\u003cbr\u003e\nn个...\u003cbr\u003e\n貌似可以一直加下去,但没神马卵用\u003c/p\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\u0026gt;这是引用的内容\n\u0026gt;\u0026gt;这是引用的内容\n\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;这是引用的内容\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e这是引用的内容\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e这是引用的内容\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cblockquote\u003e\n\u003cp\u003e这是引用的内容\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003ch1\u003e四、分割线\u003c/h1\u003e\n\u003cp\u003e三个或者三个以上的 - 或者 * 都可以。\u003c/p\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e---\n----\n***\n*****\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003cbr\u003e\n可以看到,显示效果是一样的。\u003c/p\u003e\n\u003chr\u003e\n\u003chr\u003e\n\u003chr\u003e\n\u003chr\u003e\n\u003ch1\u003e五、图片\u003c/h1\u003e\n\u003cp\u003e语法:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e![图片alt](图片地址 ''图片title'')\n\n图片alt就是显示在图片下面的文字,相当于对图片内容的解释。\n图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e![blockchain](https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/\nu=702257389,1274025419\u0026amp;fm=27\u0026amp;gp=0.jpg \"区块链\")\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cbr\u003e\n\u003cdiv class=\"image-package\"\u003e\n\u003cdiv class=\"image-container\" style=\"max-width: 550px; max-height: 300px;\"\u003e\n\u003cdiv class=\"image-container-fill\" style=\"padding-bottom: 54.55%;\"\u003e\u003c/div\u003e\n\u003cdiv class=\"image-view\" data-width=\"550\" data-height=\"300\"\u003e\u003cimg data-original-src=\"//upload-images.jianshu.io/upload_images/6860761-fd2f51090a890873.jpg\" data-original-width=\"550\" data-original-height=\"300\" data-original-format=\"\" data-original-filesize=\"18039\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"image-caption\"\u003eblockchain\u003c/div\u003e\n\u003c/div\u003e\n\u003cp\u003e\u003cstrong\u003e上传本地图片直接点击导航栏的图片标志,选择图片即可\u003c/strong\u003e\u003c/p\u003e\n\u003ch1\u003e六、超链接\u003c/h1\u003e\n\u003cp\u003e语法:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e[超链接名](超链接地址 \"超链接title\")\ntitle可加可不加\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e[简书](http://jianshu.com)\n[百度](http://baidu.com)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://www.jianshu.com/u/1f5ac0cf6a8b\" target=\"_blank\"\u003e简书\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://baidu.com\" target=\"_blank\" rel=\"nofollow\"\u003e百度\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e注:Markdown本身语法不支持链接在新页面中打开,貌似简书做了处理,是可以的。别的平台可能就不行了,如果想要在新页面中打开的话可以用html语言的a标签代替。\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\u0026lt;a href=\"超链接地址\" target=\"_blank\"\u0026gt;超链接名\u0026lt;/a\u0026gt;\n\n示例\n\u0026lt;a href=\"https://www.jianshu.com/u/1f5ac0cf6a8b\" target=\"_blank\"\u0026gt;简书\u0026lt;/a\u0026gt;\n\u003c/code\u003e\u003c/pre\u003e\n\u003chr\u003e\n\u003ch1\u003e七、列表\u003c/h1\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e无序列表\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e语法:\u003cbr\u003e\n无序列表用 - + * 任何一种都可以\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e- 列表内容\n+ 列表内容\n* 列表内容\n\n注意:- + * 跟内容之间都要有一个空格\n\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e列表内容\u003c/li\u003e\n\u003c/ul\u003e\n\u003cul\u003e\n\u003cli\u003e列表内容\u003c/li\u003e\n\u003c/ul\u003e\n\u003cul\u003e\n\u003cli\u003e列表内容\u003c/li\u003e\n\u003c/ul\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e有序列表\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e语法:\u003cbr\u003e\n数字加点\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e1.列表内容\n2.列表内容\n3.列表内容\n\n注意:序号跟内容之间要有空格\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cp\u003e1.列表内容\u003cbr\u003e\n2.列表内容\u003cbr\u003e\n3.列表内容\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ch5\u003e列表嵌套\u003c/h5\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cstrong\u003e上一级和下一级之间敲三个空格即可\u003c/strong\u003e\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e一级无序列表内容\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e一级无序列表内容\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003e一级有序列表内容\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003cli\u003e二级无序列表内容\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e一级有序列表内容\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003cli\u003e二级有序列表内容\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003chr\u003e\n\u003ch1\u003e八、表格\u003c/h1\u003e\n\u003cp\u003e语法:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e表头|表头|表头\n---|:--:|---:\n内容|内容|内容\n内容|内容|内容\n\n第二行分割表头和内容。\n- 有一个就行,为了对齐,多加了几个\n文字默认居左\n-两边加:表示文字居中\n-右边加:表示文字居右\n注:原生的语法两边都要用 | 包起来。此处省略\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e姓名|技能|排行\n--|:--:|--:\n刘备|哭|大哥\n关羽|打|二哥\n张飞|骂|三弟\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003e姓名\u003c/th\u003e\n\u003cth style=\"text-align:center\"\u003e技能\u003c/th\u003e\n\u003cth style=\"text-align:right\"\u003e排行\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e刘备\u003c/td\u003e\n\u003ctd style=\"text-align:center\"\u003e哭\u003c/td\u003e\n\u003ctd style=\"text-align:right\"\u003e大哥\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e关羽\u003c/td\u003e\n\u003ctd style=\"text-align:center\"\u003e打\u003c/td\u003e\n\u003ctd style=\"text-align:right\"\u003e二哥\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e张飞\u003c/td\u003e\n\u003ctd style=\"text-align:center\"\u003e骂\u003c/td\u003e\n\u003ctd style=\"text-align:right\"\u003e三弟\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch1\u003e九、代码\u003c/h1\u003e\n\u003cp\u003e语法:\u003cbr\u003e\n单行代码:代码之间分别用一个反引号包起来\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e `代码内容`\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e代码块:代码之间分别用三个反引号包起来,且两边的反引号单独占一行\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e(```)\n 代码...\n 代码...\n 代码...\n(```)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cblockquote\u003e\n\u003cp\u003e注:为了防止转译,前后三个反引号处加了小括号,实际是没有的。这里只是用来演示,实际中去掉两边小括号即可。\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003e示例:\u003c/p\u003e\n\u003cp\u003e单行代码\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e`create database hero;`\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e代码块\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e(```)\n function fun(){\n echo \"这是一句非常牛逼的代码\";\n }\n fun();\n(```)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003c/p\u003e\n\u003cp\u003e单行代码\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003ecreate database hero;\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003e代码块\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003efunction fun(){\n echo \"这是一句非常牛逼的代码\";\n}\nfun();\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch1\u003e十、流程图\u003c/h1\u003e\n\u003cpre\u003e\u003ccode\u003e```flow\nst=\u0026gt;start: 开始\nop=\u0026gt;operation: My Operation\ncond=\u0026gt;condition: Yes or No?\ne=\u0026gt;end\nst-\u0026gt;op-\u0026gt;cond\ncond(yes)-\u0026gt;e\ncond(no)-\u0026gt;op\n\u0026amp;```\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e效果如下:\u003cbr\u003e\n简书不支持流程图,所以截了个图\u003c/p\u003e\n\u003cbr\u003e\n\u003cdiv class=\"image-package\"\u003e\n\u003cdiv class=\"image-container\" style=\"max-width: 700px; max-height: 467px;\"\u003e\n\u003cdiv class=\"image-container-fill\" style=\"padding-bottom: 62.18%;\"\u003e\u003c/div\u003e\n\u003cdiv class=\"image-view\" data-width=\"751\" data-height=\"467\"\u003e\u003cimg data-original-src=\"//upload-images.jianshu.io/upload_images/6860761-9d9524ba31047696.png\" data-original-width=\"751\" data-original-height=\"467\" data-original-format=\"\" data-original-filesize=\"15560\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"image-caption\"\u003e流程图.png\u003c/div\u003e\n\u003c/div\u003e\n","voted_down":false,"rewardable":true,"show_paid_comment_tips":false,"share_image_url":"//upload-images.jianshu.io/upload_images/6860761-fd2f51090a890873.jpg","slug":"191d1e21f7ed","user":{"liked_by_user":false,"gender":0,"slug":"1f5ac0cf6a8b","intro":"","likes_count":1860,"nickname":"高鸿祥","badges":[],"total_fp_amount":"220052020677198205955","wordage":75206,"avatar":"http://upload.jianshu.io/users/upload_avatars/6860761/b343643c-5ced-4421-ab58-1274e7bfe704","id":6860761,"liked_user":false},"likes_count":1675,"paid_type":"free","paid_content_accessible":false,"total_fp_amount":"100550000000000000000","trial_open":false,"reprintable":true,"bookmarked":false,"wordage":1123,"featured_comments_count":3,"downvotes_count":1,"wangxin_trial_open":false,"commentable":true,"total_rewards_count":1,"id":22638973,"notebook":{"name":""},"description":"Markdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式。 相比WYSIWYG编辑器 优点:1、因为是纯文本,所以只要支持Markd...","first_shared_at":1516183451,"views_count":959770,"notebook_id":21225181},"baseList":{"likeList":[],"dislikeList":[],"rewardList":[]},"status":"success","statusCode":0},"user":{"isLogin":false,"userInfo":{}},"comments":{"list":[],"featuredList":[]}},"initialProps":{"pageProps":{"query":{"slug":"191d1e21f7ed"}},"localeData":{"common":{"jianshu":"简书","diamond":"简书钻","diamondCount":"拥有{num}钻","diamondValue":" (约{num}元)","login":"登录","logout":"注销","register":"注册","on":"开","off":"关","follow":"关注","following":"已关注","cancelFollow":"取消关注","publish":"发布","wordage":"字数","audio":"音频","read":"阅读","reward":"赞赏","zan":"赞","comment":"评论","expand":"展开","prevPage":"上一页","nextPage":"下一页","floor":"楼","confirm":"确定","delete":"删除","report":"举报","fontSong":"宋体","fontBlack":"黑体","chs":"简体","cht":"繁体","jianChat":"简信","postRequest":"投稿请求","likeAndZan":"喜欢和赞","rewardAndPay":"赞赏和付费","home":"我的主页","markedNotes":"收藏的文章","likedNotes":"喜欢的文章","paidThings":"已购内容","wallet":"我的钱包","setting":"设置","feedback":"帮助与反馈","loading":"加载中...","needLogin":"请登录后进行操作","trialing":"文章正在审核中...","reprintTip":"禁止转载,如需转载请通过简信或评论联系作者。"},"error":{"rewardSelf":"无法打赏自己的文章哟~"},"message":{"paidNoteTip":"付费购买后才可以参与评论哦","CommentDisableTip":"作者关闭了评论功能","contentCanNotEmptyTip":"回复内容不能为空","addComment":"评论发布成功","deleteComment":"评论删除成功","likeComment":"评论点赞成功","setReadMode":"阅读模式设置成功","setFontType":"字体设置成功","setLocale":"显示语言设置成功","follow":"关注成功","cancelFollow":"取消关注成功","copySuccess":"复制代码成功"},"header":{"homePage":"首页","download":"下载APP","discover":"发现","message":"消息","reward":"赞赏支持","editNote":"编辑文章","writeNote":"写文章"},"note":{},"noteMeta":{"lastModified":"最后编辑于 ","wordage":"字数 {num}","viewsCount":"阅读 {num}"},"divider":{"selfText":"以下内容为付费内容,定价 ¥{price}","paidText":"已付费,可查看以下内容","notPaidText":"还有 {percent} 的精彩内容","modify":"点击修改"},"paidPanel":{"buyNote":"支付 ¥{price} 继续阅读","buyBook":"立即拿下 ¥{price}","freeTitle":"该作品为付费连载","freeText":"购买即可永久获取连载内的所有内容,包括将来更新的内容","paidTitle":"还没看够?拿下整部连载!","paidText":"永久获得连载内的所有内容, 包括将来更新的内容"},"book":{"last":"已是最后","lookCatalog":"查看连载目录"},"action":{"like":"{num}人点赞","collection":"收入专题","report":"举报文章"},"comment":{"allComments":"全部评论","featuredComments":"精彩评论","closed":"评论已关闭","close":"关闭评论","open":"打开评论","desc":"按时间倒序","asc":"按时间正序","disableText1":"用户已关闭评论,","disableText2":"与Ta简信交流","placeholder":"写下你的评论...","publish":"发表","create":" 添加新评论","reply":" 回复","restComments":"还有{num}条评论,","expandImage":"展开剩余{num}张图","deleteText":"确定要删除评论么?"},"collection":{"title":"被以下专题收入,发现更多相似内容","putToMyCollection":"收入我的专题"},"seoList":{"title":"推荐阅读","more":"更多精彩内容"},"sideList":{"title":"精彩继续"},"wxShareModal":{"desc":"打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮"},"bookChapterModal":{"try":"试读","toggle":"切换顺序"},"collectionModal":{"title":"收入到我管理的专题","search":"搜索我管理的专题","newCollection":"新建专题","create":"创建","nothingFound":"未找到相关专题","loadMore":"展开查看更多"},"contributeModal":{"search":"搜索专题投稿","newCollection":"新建专题","addNewOne":"去新建一个","nothingFound":"未找到相关专题","loadMore":"展开查看更多","managed":"我管理的专题","recommend":"推荐专题"},"QRCodeShow":{"payTitle":"微信扫码支付","payText":"支付金额"},"rewardModal":{"title":"给作者送糖","custom":"自定义","placeholder":"给Ta留言...","choose":"选择支付方式","balance":"简书余额","tooltip":"网站该功能暂时下线,如需使用,请到简书App操作","confirm":"确认支付","success":"赞赏成功"},"payModal":{"payBook":"购买连载","payNote":"购买文章","promotion":"优惠券","promotionFetching":"优惠券获取中...","noPromotion":"无可用优惠券","promotionNum":"{num}张可用","noUsePromotion":"不使用优惠券","validPromotion":"可用优惠券","invalidPromotion":"不可用优惠券","total":"支付总额","tip1":"· 你将购买的商品为虚拟内容服务,购买后不支持退订、转让、退换,请斟酌确认。","tip2":"· 购买后可在“已购内容”中查看和使用。","success":"购买成功"},"reportModal":{"ad":"广告及垃圾信息","plagiarism":"抄袭或未授权转载","placeholder":"写下举报的详情情况(选填)","success":"举报成功"}},"currentLocale":"zh-CN","asPath":"/p/191d1e21f7ed"}},"page":"/p/[slug]","query":{"slug":"191d1e21f7ed"},"buildId":"8TVW1Ekmdmt-Z8agNNYvq","assetPrefix":"https://cdn2.jianshu.io/shakespeare"}</script><script async="" data-next-page="/p/[slug]" src="https://cdn2.jianshu.io/shakespeare/_next/static/8TVW1Ekmdmt-Z8agNNYvq/pages/p/[slug].js"></script><script async="" data-next-page="/_app" src="https://cdn2.jianshu.io/shakespeare/_next/static/8TVW1Ekmdmt-Z8agNNYvq/pages/_app.js"></script><script src="https://cdn2.jianshu.io/shakespeare/_next/static/runtime/webpack-aaaae36ad8c200bd44f5.js" async=""></script><script src="https://cdn2.jianshu.io/shakespeare/_next/static/chunks/commons.0b3bf3a834ed38fd68ec.js" async=""></script><script src="https://cdn2.jianshu.io/shakespeare/_next/static/chunks/styles.96dca4f403232f63c947.js" async=""></script><script src="https://cdn2.jianshu.io/shakespeare/_next/static/runtime/main-d1884fe3766c2284d4ba.js" async=""></script><script type="application/javascript"> var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.async = 1; hm.src = "https://hm.baidu.com/hm.js?0c0e9d9b1e7d617b3e6842e85b9fb068"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();</script></body>表头|表头|表头 ---|:--:|---: 内容|内容|内容 内容|内容|内容
第二行分割表头和内容。
- 有一个就行,为了对齐,多加了几个
文字默认居左
-两边加:表示文字居中
-右边加:表示文字居右
注:原生的语法两边都要用 | 包起来。此处省略