-
Notifications
You must be signed in to change notification settings - Fork 0
/
markdown-syntax.html
200 lines (143 loc) · 8.24 KB
/
markdown-syntax.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>MarkDown常用语法</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
<link href="zsneoks.github.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="木大 Atom Feed" />
<link href="zsneoks.github.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="木大 RSS Feed" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href=".">木大 </a></h1>
<nav><ul>
<li ><a href="./category/Ganga.html">Ganga</a></li>
<li class="active"><a href="./category/linux.html">linux</a></li>
<li ><a href="./category/关于.html">关于</a></li>
<li ><a href="./category/测试.html">测试</a></li>
<li ><a href="./category/物理.html">物理</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="markdown-syntax.html" rel="bookmark"
title="Permalink to MarkDown常用语法">MarkDown常用语法</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2011-07-28T00:00:00">
四 28 七月 2011
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/linux.html">linux</a>. </p>
<p>tags: <a href="./tag/linux.html">linux</a><a href="./tag/markdown.html">markdown</a></p>
</footer><!-- /.post-info -->
<p>纯为自己记录留用。主要选择自己现在初学者迫切需要的语法。日后熟悉了继续发展。</p>
<p>1、空一行(两个回车)分段</p>
<p>2、行末加两个或多个空格才是真正的换行,否则正常的一个回车就像在HTML代码中一样,被当作空
格处理 (很明显,我机器上并非如此,一个回车也被当回车入理了) <br />
3、插入链接:<a href="static/url">链接文字</a></p>
<p>4、图片跟链接很像,在前面加个叹号:![alt 文字](图片URL)</p>
<h2>标题</h2>
<p>用1-6个井号(#)开始一行表示这一行是标题,倒如:</p>
<div class="codehilite"><pre><span class="c">#一级标题</span>
<span class="c">##二级标题</span>
<span class="c">######六级标题</span>
</pre></div>
<blockquote>
<h1>一级标题</h1>
<h2>二级标题</h2>
<h6>六级标题</h6>
</blockquote>
<h2>blockquote</h2>
<p>用右尖括号(>)表示blockquote,你一定见过邮件中这样表示引用别人的内容。可以嵌套,可以包含其它的Markdown元素,例如:</p>
<div class="codehilite"><pre><span class="o">></span> <span class="c1">## This is a header.</span>
<span class="o">></span>
<span class="o">></span><span class="mi">1</span><span class="o">.</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">first</span> <span class="n">list</span> <span class="n">item</span><span class="o">.</span>
<span class="o">></span><span class="mi">2</span><span class="o">.</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">second</span> <span class="n">list</span> <span class="n">item</span><span class="o">.</span>
<span class="o">></span>
<span class="o">></span><span class="n">Here</span><span class="err">'</span><span class="n">s</span> <span class="n">some</span> <span class="n">example</span> <span class="n">code:</span>
<span class="o">></span>
<span class="o">></span> <span class="k">return</span> <span class="n">shell_exec</span><span class="p">(</span><span class="s">"echo $input | $markdown_script"</span><span class="p">);</span>
</pre></div>
<blockquote>
<h2>This is a header.</h2>
<ol>
<li>This is the first list item.</li>
<li>This is the second list item.</li>
</ol>
<p>Here's some example code:</p>
<p>return shell_exec("echo $input | $markdown_script");</p>
</blockquote>
</div><!-- /.entry-content -->
<div class="comments">
<h2>Comments !</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_identifier = "markdown-syntax.html";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://zsneoks.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
</div>
</article>
</section>
<section id="extras" class="body">
<div class="blogroll">
<h2>blogroll</h2>
<ul>
<li><a href="http://docs.notmyidea.org/alexis/pelican/">Pelican</a></li>
<li><a href="http://python.org">Python.org</a></li>
<li><a href="http://jinja.pocoo.org">Jinja2</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="zsneoks.github.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
<li><a href="zsneoks.github.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate">rss feed</a></li>
<li><a href="http://twitter.com/zsneoks">twitter</a></li>
<li><a href="http://lastfm.com/user/zsneoks">lastfm</a></li>
<li><a href="http://github.com/zsneoks">github</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-32881388-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<script type="text/javascript">
var disqus_shortname = 'zsneoks';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>