forked from younghz/Markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.html
320 lines (225 loc) · 10.1 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<h2 id="主要内容">主要内容</h2>
<blockquote>
<h4 id="markdown是什么">MARKDOWN是<em>什么</em>?</h4>
<h4 id="谁发明可这么个牛x的东西"><em>谁</em>发明可这么个<em>牛X</em>的东西?</h4>
<h4 id="为什么要使用它"><em>为什么</em>要使用它?</h4>
<h4 id="怎么使用"><em>怎么</em>使用?</h4>
<h4 id="都谁在用没人用的东西我可不用">都<em>谁</em>在用?没人用的东西我可不用。</h4>
<h4 id="感觉有意思趁热打铁推荐几个工具">感觉有意思?趁热打铁,推荐几个<em>工具</em>。</h4>
</blockquote>
<h2 id="正文">正文</h2>
<h3 id="1-markdown是什么">1. MARKDOWN是<em>什么</em>?</h3>
<p><strong>MARKDOWN</strong>是一种轻量级<strong>标记语言</strong>,它以纯文本形式(<em>易读、易写、易更改</em>)编写文档,并最终以HTML格式发布。 <br>
<strong>MARKDOWN</strong>也可以理解为将以MARKDOWN语言编写的语言转换成HTML内容的工具,最初是一个perl脚本<em>Markdown.pl</em>。 </p>
<h3 id="2-谁发明可这么个牛x的东西">2. <em>谁</em>发明可这么个<em>牛X</em>的东西?</h3>
<p>它由<strong>Aaron Swartz</strong>和<strong>John Gruber</strong>共同设计,<strong>Aaron Swartz</strong>就是那位迫于压力去年(<em>2013年1月11日</em>)自杀,有着<strong>开挂</strong>一般人生的程序员。如果他这样的经历不足以让你跪拜:</p>
<blockquote>
<p><strong>14岁</strong>参与创造RSS 1.0规格标准的制订. <br>
<strong>2006</strong>年创办”ok ever published”。 <br>
曾就读于<strong>斯坦福</strong>。 <br>
创建Infogami与Reddit软件公司。 <br>
<strong>2006</strong>年用wiki技术创办了网上免费图书馆Open Library。 <br>
<strong>2010</strong>年创立了反对互联网审查的Demand Progress。 <br>
<strong>2011</strong>年7月19日,因被控从MIT和JSTOR下载480万篇学术论文并以免费形式上传于网络被捕。 <br>
<strong>2013</strong>年1月自杀身亡。 </p>
</blockquote>
<p>那么他英俊的外表足以XX你的双眼: <br>
<img src="https://github.com/younghz/Markdown/raw/master/Res/Aaron_Swartz.jpg" alt="Aaron Swartz" title=""> </p>
<p>或许天才都有英年早逝的归途。</p>
<h3 id="3-为什么要使用它">3. <em>为什么</em>要使用它?</h3>
<ul>
<li>它是易读(<em>看起开舒服</em>)、易写(<em>语法简单</em>)、易更改纯文本。处处体现着极简主义的影子。</li>
<li>兼容HTML。</li>
<li>可以转换为HTML格式发布。</li>
<li>跨平台使用。</li>
<li>越来越多的网站支持Markdown。</li>
<li>更方便清晰的组织你的电子邮件。</li>
<li>摆脱Word(当然使用它你不用装盗版的office,不用担心由于版本的不同而无法打开文件,不用在乎对方的平台到底是什么。但是呵呵,有时你必须用,你懂的。)。明白这一点你只需清楚Markdown最初设计的<strong>目的</strong>即可。 </li>
</ul>
<h3 id="4-怎么使用">4. <em>怎么</em>使用?</h3>
<p>如果不算<strong>扩展</strong>,Markdown的语法绝对简单到让你爱不释手,你终于可以在你的简历中写上:</p>
<blockquote>
<p>精通Markdown </p>
</blockquote>
<p>而不怕被人问出破绽而遭鄙视(传言真正的高手根本不会鄙视菜鸟)。 <br>
废话太多,下面正文,Markdown语法主要分为如下几大部分: <br>
<strong>标题</strong>,<strong>段落</strong>,<strong>区块引用</strong>,<strong>代码区块</strong>,<strong>强调</strong>,<strong>列表</strong>,<strong>分割线</strong>,<strong>链接</strong>,<strong>图片</strong>,<strong>反斜杠 <code>\</code></strong>,<strong>符号’`’</strong>。</p>
<h4 id="41-标题">4.1 标题</h4>
<p>两种形式: <br>
1)使用<code>=</code>和<code>-</code>标记一级和二级标题。</p>
<blockquote>
<p>一级标题 </p>
<p>========= <br>
二级标题</p>
<p>—————-</p>
</blockquote>
<p>效果:</p>
<blockquote>
<h1 id="一级标题">一级标题 </h1>
<h2 id="二级标题">二级标题</h2>
</blockquote>
<p>2)使用<code>#</code>,可表示1-6级标题。</p>
<blockquote>
<p># 一级标题 <br>
## 二级标题 <br>
### 三级标题 <br>
#### 四级标题 <br>
##### 五级标题 <br>
###### 六级标题 </p>
</blockquote>
<p>效果:</p>
<blockquote>
<h1 id="一级标题-1">一级标题</h1>
<h2 id="二级标题-1">二级标题</h2>
<h3 id="三级标题">三级标题</h3>
<h4 id="四级标题">四级标题</h4>
<h5 id="五级标题">五级标题</h5>
<h6 id="六级标题">六级标题</h6>
</blockquote><div class="se-section-delimiter"></div>
<h4 id="42-段落">4.2 段落</h4>
<p>段落的前后要有空行,所谓的空行是指没有文字内容。若想在段内强制换行的方式是使用<strong>两个以上</strong>空格加上回车(引用中换行省略回车)。</p><div class="se-section-delimiter"></div>
<h4 id="43-区块引用">4.3 区块引用</h4>
<p>在段落的每行或者只在第一行使用符号<code>></code>,还可使用多个嵌套引用,如:</p>
<blockquote>
<p>>区块引用 <br>
>>嵌套引用 </p>
</blockquote>
<p>效果:</p>
<blockquote>
<p>区块引用 </p>
<blockquote>
<p>嵌套引用 </p>
</blockquote>
</blockquote>
<h4 id="44-代码区块">4.4 代码区块</h4>
<p>代码区块的建立是在每行加上4个空格或者一个制表符(如同写代码一样)。如 <br>
普通段落:</p>
<p>void main() <br>
{ <br>
printf(“Hello, Markdown.”); <br>
}</p>
<p>代码区块:</p>
<pre><code>void main()
{
printf("Hello, Markdown.");
}
</code></pre>
<p><strong>注意</strong>:需要和普通段落之间存在空行。</p>
<h4 id="45-强调">4.5 强调</h4>
<p>在强调内容两侧分别加上<code>*</code>或者<code>_</code>,如:</p>
<blockquote>
<p>*斜体*,_斜体_ <br>
**粗体**,__粗体__</p>
</blockquote>
<p>效果:</p>
<blockquote>
<p><em>斜体</em>,<em>斜体</em> <br>
<strong>粗体</strong>,<strong>粗体</strong></p>
</blockquote>
<h4 id="46-列表">4.6 列表</h4>
<p>使用<code>·</code>、<code>+</code>、或<code>-</code>标记无序列表,如:</p>
<blockquote>
<p>-(+*) 第一项 <br>
-(+*) 第二项 <br>
- (+*)第三项</p>
</blockquote>
<p><strong>注意</strong>:标记后面最少有一个<em>空格</em>或<em>制表符</em>。若不再引用区块中,必须和前方段落之间存在空行。</p>
<p>效果:</p>
<blockquote>
<ul>
<li>第一项</li>
<li>第二项</li>
<li>第三项</li>
</ul>
</blockquote>
<p>有序列表的标记方式是将上述的符号换成数字,并辅以<code>.</code>,如:</p>
<blockquote>
<p>1 . 第一项 <br>
2 . 第二项 <br>
3 . 第三项</p>
</blockquote>
<p>效果:</p>
<blockquote>
<ol>
<li>第一项</li>
<li>第二项</li>
<li>第三项</li>
</ol>
</blockquote>
<h4 id="47-分割线">4.7 分割线</h4>
<p>分割线最常使用就是三个或以上<code>*</code>,还可以使用<code>-</code>和<code>_</code>。</p>
<h4 id="48-链接">4.8 链接</h4>
<p>链接可以由两种形式生成:<strong>行内式</strong>和<strong>参考式</strong>。 <br>
<strong>行内式</strong>:</p>
<blockquote>
<p>[younghz的Markdown库](https:://github.com/younghz/Markdown “Markdown”)。</p>
</blockquote>
<p>效果:</p>
<blockquote>
<p><a href="https:://github.com/younghz/Markdown" title="Markdown">younghz的Markdown库</a>。</p>
</blockquote>
<p><strong>参考式</strong>:</p>
<blockquote>
<p>[younghz的Markdown库1][1] <br>
[younghz的Markdown库2][2] <br>
[1]:https:://github.com/younghz/Markdown “Markdown” <br>
[2]:https:://github.com/younghz/Markdown “Markdown” </p>
</blockquote>
<p>效果:</p>
<blockquote>
<p><a href="https:://github.com/younghz/Markdown" title="Markdown">younghz的Markdown库1</a> <br>
<a href="https:://github.com/younghz/Markdown" title="Markdown">younghz的Markdown库2</a></p>
</blockquote>
<p><strong>注意</strong>:[1]:https:://github.com/younghz/Markdown “Markdown”不出现在区块中。</p>
<h4 id="49-图片">4.9 图片</h4>
<p>添加图片的形式和链接相似,只需在链接的基础上前方加一个<code>!</code>。</p>
<h4 id="410-反斜杠">4.10 反斜杠<code>\</code></h4>
<p>相当于<strong>反转义</strong>作用。使符号成为普通符号。</p>
<h4 id="411-符号">4.11 符号’`’</h4>
<p>起到标记作用。如:</p>
<blockquote>
<p>`ctrl+a`</p>
</blockquote>
<p>效果:</p>
<blockquote>
<p><code>ctrl+a</code> </p>
</blockquote>
<h4 id="5-都谁在用没人用的东西我可不用">5. 都<em>谁</em>在用?没人用的东西我可不用。</h4>
<p>Markdown的用户:</p>
<ul>
<li>GitHub</li>
<li>简书</li>
<li>Stack Overflow</li>
<li>Apollo</li>
<li>Moodle</li>
<li>Reddit</li>
<li>等等</li>
</ul>
<h4 id="6-感觉有意思趁热打铁推荐几个工具">6. 感觉有意思?趁热打铁,推荐几个<em>工具</em>。</h4>
<p>笔者在这里使用的stackedit,在chrome中安装插件还可以离线使用,很爽。也不用担心平台受限。 <br>
Windowns下的MarkdownPad也用过,不过,<em>呵呵</em>。 <br>
Mac下的Mou是国人贡献的,口碑很好,可是我没有Mac book。 <br>
Linux下的ReText不错。 <br>
在线的dillinger.io算是评价最好的了,可是不能离线使用。</p>
<h3 id="其它">其它:</h3>
<p>列表的使用:</p>
<table>
<thead>
<tr>
<th style="text-align:center;">我的开源项目</th>
<th>链接</th>
</tr>
</thead>
<tbody><tr>
<td style="text-align:center;">MarkDown</td>
<td><a href="https://github.com/younghz/Markdown" title="Markdown">https://github.com/younghz/Markdown</a></td>
</tr>
<tr>
<td style="text-align:center;">moos-young</td>
<td><a href="https://github.com/younghz/moos-young" title="moos-young">https://github.com/younghz/moos-young</a></td>
</tr>
<tr>
<td style="text-align:center;">tianchi</td>
<td><a href="https://github.com/younghz/tianchi" title="tianchi">https://github.com/younghz/tianchi</a></td>
</tr>
</tbody></table>