-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
433 lines (350 loc) · 21 KB
/
test.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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>test</title>
<link rel="stylesheet" href="/theme/css/main.css" />
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
<!--[if IE]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="/">A Pelican Blog </a></h1>
<nav><ul>
<li class="active"><a href="/category/test.html">test</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="/test.html" rel="bookmark"
title="Permalink to test">test</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-12-03T10:30:00+00:00">
Published: Mon 03 December 2012
</abbr>
<br />
<abbr class="modified" title="2012-12-04T10:30:00+00:00">
Updated: Tue 04 December 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/antoine-martin.html">Antoine Martin</a>
</address>
<p>In <a href="/category/test.html">test</a>.</p>
<p>tags: <a href="/tag/test.html">test</a> </p>
</footer><!-- /.post-info --> <p>THIS IS A MOD TEST</p>
<p>THIS IS A SECOND MOD TEST</p>
<p>YUP, NOTHER OD</p>
<p>FINAL TEST
FINAL TEST TEST TEST</p>
<p>This is intended as a quick reference and showcase. For more complete info, see <a href="http://daringfireball.net/projects/markdown/">John Gruber's original spec</a> and the <a href="http://github.github.com/github-flavored-markdown/">Github-flavored Markdown info page</a>.</p>
<p>Note that there is also a <a href="./Markdown-Here-Cheatsheet">Cheatsheet specific to Markdown Here</a> if that's what you're looking for. You can also check out <a href="./Other-Markdown-Tools">more Markdown tools</a>.</p>
<h5>Table of Contents</h5>
<p><a href="#headers">Headers</a><br>
<a href="#emphasis">Emphasis</a><br>
<a href="#lists">Lists</a><br>
<a href="#links">Links</a><br>
<a href="#images">Images</a><br>
<a href="#code">Code and Syntax Highlighting</a><br>
<a href="#tables">Tables</a><br>
<a href="#blockquotes">Blockquotes</a><br>
<a href="#html">Inline HTML</a><br>
<a href="#hr">Horizontal Rule</a><br>
<a href="#lines">Line Breaks</a><br>
<a href="#videos">YouTube Videos</a> </p>
<p><a name="headers"/></p>
<h2>Headers</h2>
<div class="highlight"><pre><span></span># H1
## H2
### H3
#### H4
##### H5
###### H6
Alternatively, for H1 and H2, an underline-ish style:
Alt-H1
======
Alt-H2
------
</pre></div>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
<p>Alternatively, for H1 and H2, an underline-ish style:</p>
<h1>Alt-H1</h1>
<h2>Alt-H2</h2>
<p><a name="emphasis"/></p>
<h2>Emphasis</h2>
<div class="highlight"><pre><span></span>Emphasis, aka italics, with *asterisks* or _underscores_.
Strong emphasis, aka bold, with **asterisks** or __underscores__.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough uses two tildes. ~~Scratch this.~~
</pre></div>
<p>Emphasis, aka italics, with <em>asterisks</em> or <em>underscores</em>.</p>
<p>Strong emphasis, aka bold, with <strong>asterisks</strong> or <strong>underscores</strong>.</p>
<p>Combined emphasis with <strong>asterisks and <em>underscores</em></strong>.</p>
<p>Strikethrough uses two tildes. ~~Scratch this.~~</p>
<p><a name="lists"/></p>
<h2>Lists</h2>
<p>(In this example, leading and trailing spaces are shown with with dots: ⋅)</p>
<div class="highlight"><pre><span></span>1. First ordered list item
2. Another item
⋅⋅* Unordered sub-list.
1. Actual numbers don't matter, just that it's a number
⋅⋅1. Ordered sub-list
4. And another item.
⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
* Unordered list can use asterisks
- Or minuses
+ Or pluses
</pre></div>
<ol>
<li>First ordered list item</li>
<li>Another item</li>
<li>Unordered sub-list. </li>
<li>Actual numbers don't matter, just that it's a number</li>
<li>Ordered sub-list</li>
<li>And another item.</li>
</ol>
<p>You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).</p>
<p>To have a line break without a paragraph, you will need to use two trailing spaces.<br>
Note that this line is separate, but within the same paragraph.<br>
(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)</p>
<ul>
<li>Unordered list can use asterisks</li>
<li>Or minuses</li>
<li>Or pluses</li>
</ul>
<p><a name="links"/></p>
<h2>Links</h2>
<p>There are two ways to create links.</p>
<div class="highlight"><pre><span></span>[I'm an inline-style link](https://www.google.com)
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link][Arbitrary case-insensitive reference text]
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself].
URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <http://www.example.com> and sometimes
example.com (but not on Github, for example).
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com
</pre></div>
<p><a href="https://www.google.com">I'm an inline-style link</a></p>
<p><a href="https://www.google.com" title="Google's Homepage">I'm an inline-style link with title</a></p>
<p><a href="https://www.mozilla.org">I'm a reference-style link</a></p>
<p><a href="../blob/master/LICENSE">I'm a relative reference to a repository file</a></p>
<p><a href="http://slashdot.org">You can use numbers for reference-style link definitions</a></p>
<p>Or leave it empty and use the <a href="http://www.reddit.com">link text itself</a>.</p>
<p>URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <a href="http://www.example.com">http://www.example.com</a> and sometimes
example.com (but not on Github, for example).</p>
<p>Some text to show that the reference links can follow later.</p>
<p><a name="images"/></p>
<h2>Images</h2>
<div class="highlight"><pre><span></span><span class="n">Here</span><span class="err">'</span><span class="n">s</span> <span class="n">our</span> <span class="n">logo</span> <span class="p">(</span><span class="n">hover</span> <span class="n">to</span> <span class="n">see</span> <span class="n">the</span> <span class="n">title</span> <span class="n">text</span><span class="p">)</span><span class="o">:</span>
<span class="n">Inline</span><span class="o">-</span><span class="nl">style</span><span class="p">:</span>
<span class="o">!</span><span class="p">[</span><span class="n">alt</span> <span class="n">text</span><span class="p">](</span><span class="nl">https</span><span class="p">:</span><span class="c1">//github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")</span>
<span class="n">Reference</span><span class="o">-</span><span class="nl">style</span><span class="p">:</span>
<span class="o">!</span><span class="p">[</span><span class="n">alt</span> <span class="n">text</span><span class="p">][</span><span class="n">logo</span><span class="p">]</span>
<span class="p">[</span><span class="n">logo</span><span class="p">]</span><span class="o">:</span> <span class="nl">https</span><span class="p">:</span><span class="c1">//github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"</span>
</pre></div>
<p>Here's our logo (hover to see the title text):</p>
<p>Inline-style:
<img alt="alt text" src="https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png" title="Logo Title Text 1"></p>
<p>Reference-style:
<img alt="alt text" src="https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png" title="Logo Title Text 2"></p>
<p><a name="code"/></p>
<h2>Code and Syntax Highlighting</h2>
<p>Code blocks are part of the Markdown spec, but syntax highlighting isn't. However, many renderers -- like Github's and <em>Markdown Here</em> -- support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. <em>Markdown Here</em> supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the <a href="http://softwaremaniacs.org/media/soft/highlight/test.html">highlight.js demo page</a>.</p>
<div class="highlight"><pre><span></span>Inline `code` has `back-ticks around` it.
</pre></div>
<p>Inline <code>code</code> has <code>back-ticks around</code> it.</p>
<p>Blocks of code are either fenced by lines with three back-ticks <code>```</code>, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.</p>
<pre lang="no-highlight"><code>```javascript
var s = "JavaScript syntax highlighting";
alert(s);
wzxhzdk:6
wzxhzdk:7
</code></pre>
<div class="highlight"><pre><span></span><span class="kd">var</span> <span class="nx">s</span> <span class="o">=</span> <span class="s2">"JavaScript syntax highlighting"</span><span class="p">;</span>
<span class="nx">alert</span><span class="p">(</span><span class="nx">s</span><span class="p">);</span>
</pre></div>
<div class="highlight"><pre><span></span><span class="n">s</span> <span class="o">=</span> <span class="s2">"Python syntax highlighting"</span>
<span class="k">print</span> <span class="n">s</span>
</pre></div>
<div class="highlight"><pre><span></span>No language indicated, so no syntax highlighting in Markdown Here (varies on Github).
But let's throw in a <span class="nt"><b></span>tag<span class="nt"></b></span>.
</pre></div>
<p><a name="tables"/></p>
<h2>Tables</h2>
<p>Tables aren't part of the core Markdown spec, but they are part of GFM and <em>Markdown Here</em> supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.</p>
<div class="highlight"><pre><span></span><span class="nv">Colons</span> <span class="s s-Atom">can</span> <span class="s s-Atom">be</span> <span class="s s-Atom">used</span> <span class="s s-Atom">to</span> <span class="s s-Atom">align</span> <span class="s s-Atom">columns</span><span class="p">.</span>
<span class="p">|</span> <span class="nv">Tables</span> <span class="p">|</span> <span class="nv">Are</span> <span class="p">|</span> <span class="nv">Cool</span> <span class="p">|</span>
<span class="p">|</span> <span class="s s-Atom">-------------</span> <span class="p">|:-</span><span class="s s-Atom">------------:</span><span class="p">|</span> <span class="s s-Atom">-----:</span><span class="p">|</span>
<span class="p">|</span> <span class="s s-Atom">col</span> <span class="mi">3</span> <span class="o">is</span> <span class="p">|</span> <span class="s s-Atom">right</span><span class="o">-</span><span class="s s-Atom">aligned</span> <span class="p">|</span> <span class="err">$</span><span class="mi">1600</span> <span class="p">|</span>
<span class="p">|</span> <span class="s s-Atom">col</span> <span class="mi">2</span> <span class="o">is</span> <span class="p">|</span> <span class="s s-Atom">centered</span> <span class="p">|</span> <span class="err">$</span><span class="mi">12</span> <span class="p">|</span>
<span class="p">|</span> <span class="s s-Atom">zebra</span> <span class="s s-Atom">stripes</span> <span class="p">|</span> <span class="s s-Atom">are</span> <span class="s s-Atom">neat</span> <span class="p">|</span> <span class="err">$</span><span class="mi">1</span> <span class="p">|</span>
<span class="nv">There</span> <span class="s s-Atom">must</span> <span class="s s-Atom">be</span> <span class="s s-Atom">at</span> <span class="s s-Atom">least</span> <span class="mi">3</span> <span class="s s-Atom">dashes</span> <span class="s s-Atom">separating</span> <span class="s s-Atom">each</span> <span class="s s-Atom">header</span> <span class="s s-Atom">cell</span><span class="p">.</span>
<span class="nv">The</span> <span class="s s-Atom">outer</span> <span class="nf">pipes</span> <span class="p">(|)</span> <span class="s s-Atom">are</span> <span class="s s-Atom">optional</span><span class="p">,</span> <span class="s s-Atom">and</span> <span class="s s-Atom">you</span> <span class="s s-Atom">don</span><span class="err">'</span><span class="s s-Atom">t</span> <span class="s s-Atom">need</span> <span class="s s-Atom">to</span> <span class="s s-Atom">make</span> <span class="s s-Atom">the</span>
<span class="s s-Atom">raw</span> <span class="nv">Markdown</span> <span class="s s-Atom">line</span> <span class="s s-Atom">up</span> <span class="s s-Atom">prettily</span><span class="p">.</span> <span class="nv">You</span> <span class="s s-Atom">can</span> <span class="s s-Atom">also</span> <span class="s s-Atom">use</span> <span class="s s-Atom">inline</span> <span class="nv">Markdown</span><span class="p">.</span>
<span class="nv">Markdown</span> <span class="p">|</span> <span class="nv">Less</span> <span class="p">|</span> <span class="nv">Pretty</span>
<span class="s s-Atom">---</span> <span class="p">|</span> <span class="s s-Atom">---</span> <span class="p">|</span> <span class="s s-Atom">---</span>
<span class="o">*</span><span class="nv">Still</span><span class="o">*</span> <span class="p">|</span> <span class="err">`</span><span class="s s-Atom">renders</span><span class="err">`</span> <span class="p">|</span> <span class="s s-Atom">**nicely**</span>
<span class="mi">1</span> <span class="p">|</span> <span class="mi">2</span> <span class="p">|</span> <span class="mi">3</span>
</pre></div>
<p>Colons can be used to align columns.</p>
<table>
<thead>
<tr>
<th>Tables</th>
<th align="center">Are</th>
<th align="right">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td>col 3 is</td>
<td align="center">right-aligned</td>
<td align="right">$1600</td>
</tr>
<tr>
<td>col 2 is</td>
<td align="center">centered</td>
<td align="right">$12</td>
</tr>
<tr>
<td>zebra stripes</td>
<td align="center">are neat</td>
<td align="right">$1</td>
</tr>
</tbody>
</table>
<p>There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>Less</th>
<th>Pretty</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>Still</em></td>
<td><code>renders</code></td>
<td><strong>nicely</strong></td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
<p><a name="blockquotes"/></p>
<h2>Blockquotes</h2>
<div class="highlight"><pre><span></span>> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
Quote break.
> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
</pre></div>
<blockquote>
<p>Blockquotes are very handy in email to emulate reply text.
This line is part of the same quote.</p>
</blockquote>
<p>Quote break.</p>
<blockquote>
<p>This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can <em>put</em> <strong>Markdown</strong> into a blockquote. </p>
</blockquote>
<p><a name="html"/></p>
<h2>Inline HTML</h2>
<p>You can also use raw HTML in your Markdown, and it'll mostly work pretty well. </p>
<div class="highlight"><pre><span></span><span class="nt"><dl></span>
<span class="nt"><dt></span>Definition list<span class="nt"></dt></span>
<span class="nt"><dd></span>Is something people use sometimes.<span class="nt"></dd></span>
<span class="nt"><dt></span>Markdown in HTML<span class="nt"></dt></span>
<span class="nt"><dd></span>Does *not* work **very** well. Use HTML <span class="nt"><em></span>tags<span class="nt"></em></span>.<span class="nt"></dd></span>
<span class="nt"></dl></span>
</pre></div>
<dl>
<dt>Definition list</dt>
<dd>Is something people use sometimes.</dd>
<dt>Markdown in HTML</dt>
<dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
</dl>
<p><a name="hr"/></p>
<h2>Horizontal Rule</h2>
<div class="highlight"><pre><span></span>Three or more...
---
Hyphens
***
Asterisks
___
Underscores
</pre></div>
<p>Three or more...</p>
<hr>
<p>Hyphens</p>
<hr>
<p>Asterisks</p>
<hr>
<p>Underscores</p>
<p><a name="lines"/></p>
<h2>Line Breaks</h2>
<p>My basic recommendation for learning how line breaks work is to experiment and discover -- hit <Enter> once (i.e., insert one newline), then hit it twice (i.e., insert two newlines), see what happens. You'll soon learn to get what you want. "Markdown Toggle" is your friend. </p>
<p>Here are some things to try out:</p>
<div class="highlight"><pre><span></span>Here's a line for us to start with.
This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
This line is also a separate paragraph, but...
This line is only separated by a single newline, so it's a separate line in the *same paragraph*.
</pre></div>
<p>Here's a line for us to start with.</p>
<p>This line is separated from the one above by two newlines, so it will be a <em>separate paragraph</em>.</p>
<p>This line is also begins a separate paragraph, but...<br>
This line is only separated by a single newline, so it's a separate line in the <em>same paragraph</em>.</p>
<p>(Technical note: <em>Markdown Here</em> uses GFM line breaks, so there's no need to use MD's two-space line breaks.)</p>
<p><a name="videos"/></p>
<h2>YouTube Videos</h2>
<p>They can't be added directly but you can add an image with a link to the video like this:</p>
<div class="highlight"><pre><span></span><span class="nt"><a</span> <span class="na">href=</span><span class="s">"http://www.youtube.com/watch?feature=player_embedded&v=YOUTUBE_VIDEO_ID_HERE</span>
<span class="s">"</span> <span class="na">target=</span><span class="s">"_blank"</span><span class="nt">><img</span> <span class="na">src=</span><span class="s">"http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg"</span>
<span class="na">alt=</span><span class="s">"IMAGE ALT TEXT HERE"</span> <span class="na">width=</span><span class="s">"240"</span> <span class="na">height=</span><span class="s">"180"</span> <span class="na">border=</span><span class="s">"10"</span> <span class="nt">/></a></span>
</pre></div>
<p>Or, in pure Markdown, but losing the image sizing and border:</p>
<div class="highlight"><pre><span></span>[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
</pre></div>
<p>Referencing a bug by #bugID in your git commit links it to the slip. For example #1. </p>
<hr>
<p>License: <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a></p>
</div><!-- /.entry-content -->
</article>
</section>
<section id="extras" class="body">
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">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 -->
</body>
</html>