-
Notifications
You must be signed in to change notification settings - Fork 2
/
markdown.html
759 lines (736 loc) · 41.9 KB
/
markdown.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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Salih Emin" />
<meta name="copyright" content="Salih Emin" />
<meta name="description" content="Markdown typography Cheatsheet
" />
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary">
<meta name="keywords" content="markdown, publishing, cheatsheet, Web Site, " />
<meta property="og:title" content="Markdown Typography "/>
<meta property="og:url" content="http://utappia.org/markdown.html" />
<meta property="og:description" content="Markdown typography Cheatsheet" />
<meta property="og:site_name" content="Utappia" />
<meta property="og:article:author" content="Salih Emin" />
<meta property="og:article:published_time" content="2015-04-25T20:31:00+03:00" />
<meta property="" content="2015-04-25T20:31:00+03:00" />
<meta name="twitter:title" content="Markdown Typography ">
<meta name="twitter:description" content="Markdown typography Cheatsheet">
<title>Markdown Typography · Utappia
</title>
<!-- <link rel="stylesheet" type="text/css" href="http://utappia.org/theme/css/bootstrap-combined.min.css" media="screen">-->
<!-- <link rel="stylesheet" type="text/css" href="http://utappia.org/theme/css/font-awesome.css" media="screen"> -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://utappia.org/theme/css/pygments.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://utappia.org/theme/tipuesearch/tipuesearch.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://utappia.org/theme/css/elegant.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://utappia.org/theme/css/custom.css" media="screen">
<link href="http://utappia.org/feeds/all.rss.xml" type="application/atom+xml" rel="alternate" title="Utappia - Full Atom Feed" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-62475496-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="content-sans-footer">
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="http://utappia.org/"><span class=site-name>Utappia</span></a>
<div class="nav-collapse collapse">
<ul class="nav pull-right top-menu">
<li ><a href="http://utappia.org">Home</a></li>
<li ><a href="http://utappia.org/pages/downloads.html">Downloads</a></li>
<li ><a href="http://utappia.org/pages/feedback.html">Feedback</a></li>
<li ><a href="http://utappia.org/categories.html">Categories</a></li>
<li ><a href="http://utappia.org/tags.html">Tags</a></li>
<li ><a href="http://utappia.org/archives.html">Archives</a></li>
<li><form class="navbar-search" action="http://utappia.org/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span1"></div>
<div class="span10">
<article>
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="http://utappia.org/markdown.html"> Markdown Typography </a></h1>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Front page -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1644909386979397"
data-ad-slot="1718239665"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</header>
</div>
<div class="row-fluid">
<div class="span2 table-of-content">
<nav>
<h4>Contents</h4>
<div class="toc">
<ul>
<li><a href="#typography">Typography</a><ul>
<li><a href="#headings">Headings</a></li>
<li><a href="#horizontal-rules">Horizontal Rules</a></li>
<li><a href="#body-copy">Body Copy</a></li>
<li><a href="#emphasis">Emphasis</a><ul>
<li><a href="#bold">Bold</a></li>
<li><a href="#italics">Italics</a></li>
<li><a href="#strikethrough">strikethrough</a></li>
</ul>
</li>
<li><a href="#blockquotes">Blockquotes</a></li>
<li><a href="#lists">Lists</a><ul>
<li><a href="#unordered">Unordered</a></li>
<li><a href="#ordered">Ordered</a></li>
</ul>
</li>
<li><a href="#code">Code</a><ul>
<li><a href="#inline-code">Inline code</a></li>
<li><a href="#indented-code">Indented code</a></li>
<li><a href="#block-code-fences">Block code "fences"</a></li>
<li><a href="#syntax-highlighting">Syntax highlighting</a></li>
</ul>
</li>
<li><a href="#tables">Tables</a><ul>
<li><a href="#right-aligned-text">Right aligned text</a></li>
</ul>
</li>
<li><a href="#links">Links</a><ul>
<li><a href="#basic-link">Basic link</a></li>
<li><a href="#add-a-title">Add a title</a></li>
<li><a href="#named-anchors">Named Anchors</a></li>
</ul>
</li>
<li><a href="#images">Images</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
<div class="span8 article-content">
<h1 id="typography">Typography</h1>
<h2 id="headings">Headings</h2>
<p>Headings from <code>h1</code> through <code>h6</code> are constructed with a <code>#</code> for each level:</p>
<div class="highlight"><pre># h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
</pre></div>
<p>HTML:</p>
<div class="highlight"><pre><span class="nt"><h1></span>h1 Heading<span class="nt"></h1></span>
<span class="nt"><h2></span>h2 Heading<span class="nt"></h2></span>
<span class="nt"><h3></span>h3 Heading<span class="nt"></h3></span>
<span class="nt"><h4></span>h4 Heading<span class="nt"></h4></span>
<span class="nt"><h5></span>h5 Heading<span class="nt"></h5></span>
<span class="nt"><h6></span>h6 Heading<span class="nt"></h6></span>
</pre></div>
<p><br>
<br>
<br/></br></br></p>
<h2 id="horizontal-rules">Horizontal Rules</h2>
<p>The HTML <code><hr></code> element is for creating a "thematic break" between paragraph-level elements. In markdown, you can create a <code><hr></code> with any of the following:</p>
<ul>
<li><code>___</code>: three consecutive underscores</li>
<li><code>---</code>: three consecutive dashes</li>
<li><code>***</code>: three consecutive asterisks</li>
</ul>
<p>renders to:</p>
<hr/>
<hr/>
<hr/>
<p><br>
<br>
<br/></br></br></p>
<h2 id="body-copy">Body Copy</h2>
<p>Body copy written as normal, plain text will be wrapped with <code><p></p></code> tags in the rendered HTML.</p>
<p>So this body copy:</p>
<div class="highlight"><pre>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.
</pre></div>
<p>renders to this HTML:</p>
<div class="highlight"><pre><span class="nt"><p></span>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.<span class="nt"></p></span>
</pre></div>
<p><br>
<br>
<br/></br></br></p>
<h2 id="emphasis">Emphasis</h2>
<h3 id="bold">Bold</h3>
<p>For emphasizing a snippet of text with a heavier font-weight.</p>
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
<div class="highlight"><pre>**rendered as bold text**
</pre></div>
<p>renders to:</p>
<p><strong>rendered as bold text</strong></p>
<p>and this HTML</p>
<div class="highlight"><pre><span class="nt"><strong></span>rendered as bold text<span class="nt"></strong></span>
</pre></div>
<h3 id="italics">Italics</h3>
<p>For emphasizing a snippet of text with italics.</p>
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
<div class="highlight"><pre>_rendered as italicized text_
</pre></div>
<p>renders to:</p>
<p><em>rendered as italicized text</em></p>
<p>and this HTML:</p>
<div class="highlight"><pre><span class="nt"><em></span>rendered as italicized text<span class="nt"></em></span>
</pre></div>
<h3 id="strikethrough">strikethrough</h3>
<p>In GFM you can do strickthroughs. </p>
<div class="highlight"><pre>~~Strike through this text.~~
</pre></div>
<p>Which renders to:</p>
<p>~~Strike through this text.~~</p>
<p><br>
<br>
<br/></br></br></p>
<h2 id="blockquotes">Blockquotes</h2>
<p>For quoting blocks of content from another source within your document.</p>
<p>Add <code>></code> before any text you want to quote. </p>
<div class="highlight"><pre>Add `>` before any text you want to quote.
</pre></div>
<p>Renders to:</p>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>
<p>and this HTML:</p>
<div class="highlight"><pre><span class="nt"><blockquote></span>
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<span class="nt"></p></span>
<span class="nt"></blockquote></span>
</pre></div>
<p>Blockquotes can also be nested:</p>
<div class="highlight"><pre>> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
>> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
>>> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
</pre></div>
<p>Renders to:</p>
<blockquote>
<p>Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi. </p>
<blockquote>
<p>Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor
odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.</p>
<blockquote>
<p>Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi. </p>
</blockquote>
</blockquote>
</blockquote>
<p><br>
<br>
<br/></br></br></p>
<h2 id="lists">Lists</h2>
<h3 id="unordered">Unordered</h3>
<p>A list of items in which the order of the items does not explicitly matter.</p>
<p>You may use any of the following symbols to denote bullets for each list item:</p>
<div class="highlight"><pre>* valid bullet
- valid bullet
+ valid bullet
</pre></div>
<p>For example</p>
<div class="highlight"><pre>+ Lorem ipsum dolor sit amet
+ Consectetur adipiscing elit
+ Integer molestie lorem at massa
+ Facilisis in pretium nisl aliquet
+ Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
+ Faucibus porta lacus fringilla vel
+ Aenean sit amet erat nunc
+ Eget porttitor lorem
</pre></div>
<p>Renders to:</p>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
<p>And this HTML</p>
<div class="highlight"><pre><span class="nt"><ul></span>
<span class="nt"><li></span>Lorem ipsum dolor sit amet<span class="nt"></li></span>
<span class="nt"><li></span>Consectetur adipiscing elit<span class="nt"></li></span>
<span class="nt"><li></span>Integer molestie lorem at massa<span class="nt"></li></span>
<span class="nt"><li></span>Facilisis in pretium nisl aliquet<span class="nt"></li></span>
<span class="nt"><li></span>Nulla volutpat aliquam velit
<span class="nt"><ul></span>
<span class="nt"><li></span>Phasellus iaculis neque<span class="nt"></li></span>
<span class="nt"><li></span>Purus sodales ultricies<span class="nt"></li></span>
<span class="nt"><li></span>Vestibulum laoreet porttitor sem<span class="nt"></li></span>
<span class="nt"><li></span>Ac tristique libero volutpat at<span class="nt"></li></span>
<span class="nt"></ul></span>
<span class="nt"></li></span>
<span class="nt"><li></span>Faucibus porta lacus fringilla vel<span class="nt"></li></span>
<span class="nt"><li></span>Aenean sit amet erat nunc<span class="nt"></li></span>
<span class="nt"><li></span>Eget porttitor lorem<span class="nt"></li></span>
<span class="nt"></ul></span>
</pre></div>
<h3 id="ordered">Ordered</h3>
<p>A list of items in which the order of items does explicitly matter.</p>
<div class="highlight"><pre>1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa
4. Facilisis in pretium nisl aliquet
5. Nulla volutpat aliquam velit
6. Faucibus porta lacus fringilla vel
7. Aenean sit amet erat nunc
8. Eget porttitor lorem
</pre></div>
<p>Renders to:</p>
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
<p>And this HTML:</p>
<div class="highlight"><pre><span class="nt"><ol></span>
<span class="nt"><li></span>Lorem ipsum dolor sit amet<span class="nt"></li></span>
<span class="nt"><li></span>Consectetur adipiscing elit<span class="nt"></li></span>
<span class="nt"><li></span>Integer molestie lorem at massa<span class="nt"></li></span>
<span class="nt"><li></span>Facilisis in pretium nisl aliquet<span class="nt"></li></span>
<span class="nt"><li></span>Nulla volutpat aliquam velit<span class="nt"></li></span>
<span class="nt"><li></span>Faucibus porta lacus fringilla vel<span class="nt"></li></span>
<span class="nt"><li></span>Aenean sit amet erat nunc<span class="nt"></li></span>
<span class="nt"><li></span>Eget porttitor lorem<span class="nt"></li></span>
<span class="nt"></ol></span>
</pre></div>
<p><strong>TIP</strong>: If you just use <code>1.</code> for each number, GitHub will automatically number each item. For example:</p>
<div class="highlight"><pre>1. Lorem ipsum dolor sit amet
1. Consectetur adipiscing elit
1. Integer molestie lorem at massa
1. Facilisis in pretium nisl aliquet
1. Nulla volutpat aliquam velit
1. Faucibus porta lacus fringilla vel
1. Aenean sit amet erat nunc
1. Eget porttitor lorem
</pre></div>
<p>Renders to:</p>
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
<p><br>
<br>
<br/></br></br></p>
<h2 id="code">Code</h2>
<h3 id="inline-code">Inline code</h3>
<p>Wrap inline snippets of code with <code>`</code>.</p>
<p>For example, <code><section></section></code> should be wrapped as "inline".</p>
<div class="highlight"><pre>For example, `<span class="nt"><section></section></span>` should be wrapped as "inline".
</pre></div>
<h3 id="indented-code">Indented code</h3>
<p>Or indent several lines of code by at least four spaces, as in:</p>
<div class="highlight"><pre> <span class="c1">// Some comments</span>
<span class="nx">line</span> <span class="mi">1</span> <span class="nx">of</span> <span class="nx">code</span>
<span class="nx">line</span> <span class="mi">2</span> <span class="nx">of</span> <span class="nx">code</span>
<span class="nx">line</span> <span class="mi">3</span> <span class="nx">of</span> <span class="nx">code</span>
</pre></div>
<div class="highlight"><pre>// Some comments
line 1 of code
line 2 of code
line 3 of code
</pre></div>
<h3 id="block-code-fences">Block code "fences"</h3>
<p>Use "fences" <code>```</code> to block in multiple lines of code. </p>
<pre>
wzxhzdk:20
</pre>
<div class="highlight"><pre>Sample text here...
</pre></div>
<p>HTML:</p>
<div class="highlight"><pre><span class="nt"><pre></span>
<span class="nt"><p></span>Sample text here...<span class="nt"></p></span>
<span class="nt"></pre></span>
</pre></div>
<h3 id="syntax-highlighting">Syntax highlighting</h3>
<p>GFM, or "GitHub Flavored Markdown" also supports syntax highlighting. To activate it, simply add the file extension of the language you want to use directly after the first code "fence", <code>``` js</code>, and syntax highlighting will automatically be applied in the rendered HTML. For example, to apply syntax highlighting to JavaScript code:</p>
<pre>
wzxhzdk:23
</pre>
<p>Renders to:</p>
<div class="highlight"><pre><span class="nx">grunt</span><span class="p">.</span><span class="nx">initConfig</span><span class="p">({</span>
<span class="nx">assemble</span><span class="o">:</span> <span class="p">{</span>
<span class="nx">options</span><span class="o">:</span> <span class="p">{</span>
<span class="nx">assets</span><span class="o">:</span> <span class="s1">'docs/assets'</span><span class="p">,</span>
<span class="nx">data</span><span class="o">:</span> <span class="s1">'src/data/*.{json,yml}'</span><span class="p">,</span>
<span class="nx">helpers</span><span class="o">:</span> <span class="s1">'src/custom-helpers.js'</span><span class="p">,</span>
<span class="nx">partials</span><span class="o">:</span> <span class="p">[</span><span class="s1">'src/partials/**/*.{hbs,md}'</span><span class="p">]</span>
<span class="p">},</span>
<span class="nx">pages</span><span class="o">:</span> <span class="p">{</span>
<span class="nx">options</span><span class="o">:</span> <span class="p">{</span>
<span class="nx">layout</span><span class="o">:</span> <span class="s1">'default.hbs'</span>
<span class="p">},</span>
<span class="nx">files</span><span class="o">:</span> <span class="p">{</span>
<span class="s1">'./'</span><span class="o">:</span> <span class="p">[</span><span class="s1">'src/templates/pages/index.hbs'</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">};</span>
</pre></div>
<p>And this complicated HTML:</p>
<div class="highlight"><pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"highlight"</span><span class="nt">><pre><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>grunt<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>.<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>initConfig<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>({<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>assemble<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>{<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>options<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>{<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>assets<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'docs/assets'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>,<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>data<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'src/data/*.{json,yml}'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>,<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>helpers<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'src/custom-helpers.js'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>,<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>partials<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>[<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'src/partials/**/*.{hbs,md}'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>]<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>},<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>pages<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>{<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>options<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>{<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>layout<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'default.hbs'<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>},<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"nx"</span><span class="nt">></span>files<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>{<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'./'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"o"</span><span class="nt">></span>:<span class="nt"></span></span> <span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>[<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"s1"</span><span class="nt">></span>'src/templates/pages/index.hbs'<span class="nt"></span><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>]<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>}<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>}<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>}<span class="nt"></span></span>
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"p"</span><span class="nt">></span>};<span class="nt"></span></span>
<span class="nt"></pre></div></span>
</pre></div>
<p><br>
<br>
<br/></br></br></p>
<h2 id="tables">Tables</h2>
<p>Tables are created by adding pipes as dividers between each cell, and by adding a line of dashes (also separated by bars) beneath the header. Note that the pipes do not need to be vertically aligned.</p>
<div class="highlight"><pre>| Option | Description |
| ------ | ----------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
</pre></div>
<p>Renders to:</p>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>path to data files to supply the data that will be passed into templates.</td>
</tr>
<tr>
<td>engine</td>
<td>engine to be used for processing templates. Handlebars is the default.</td>
</tr>
<tr>
<td>ext</td>
<td>extension to be used for dest files.</td>
</tr>
</tbody>
</table>
<p>And this HTML:</p>
<div class="highlight"><pre><span class="nt"><table></span>
<span class="nt"><tr></span>
<span class="nt"><th></span>Option<span class="nt"></th></span>
<span class="nt"><th></span>Description<span class="nt"></th></span>
<span class="nt"></tr></span>
<span class="nt"><tr></span>
<span class="nt"><td></span>data<span class="nt"></td></span>
<span class="nt"><td></span>path to data files to supply the data that will be passed into templates.<span class="nt"></td></span>
<span class="nt"></tr></span>
<span class="nt"><tr></span>
<span class="nt"><td></span>engine<span class="nt"></td></span>
<span class="nt"><td></span>engine to be used for processing templates. Handlebars is the default.<span class="nt"></td></span>
<span class="nt"></tr></span>
<span class="nt"><tr></span>
<span class="nt"><td></span>ext<span class="nt"></td></span>
<span class="nt"><td></span>extension to be used for dest files.<span class="nt"></td></span>
<span class="nt"></tr></span>
<span class="nt"></table></span>
</pre></div>
<h3 id="right-aligned-text">Right aligned text</h3>
<p>Adding a colon on the right side of the dashes below any heading will right align text for that column.</p>
<div class="highlight"><pre>| Option | Description |
| ------:| -----------:|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
</pre></div>
<table>
<thead>
<tr>
<th align="right">Option</th>
<th align="right">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right">data</td>
<td align="right">path to data files to supply the data that will be passed into templates.</td>
</tr>
<tr>
<td align="right">engine</td>
<td align="right">engine to be used for processing templates. Handlebars is the default.</td>
</tr>
<tr>
<td align="right">ext</td>
<td align="right">extension to be used for dest files.</td>
</tr>
</tbody>
</table>
<p><br>
<br>
<br/></br></br></p>
<h2 id="links">Links</h2>
<h3 id="basic-link">Basic link</h3>
<div class="highlight"><pre>[Assemble](http://assemble.io)
</pre></div>
<p>Renders to (hover over the link, there is no tooltip):</p>
<p><a href="http://assemble.io">Assemble</a></p>
<p>HTML:</p>
<div class="highlight"><pre><span class="nt"><a</span> <span class="na">href=</span><span class="s">"http://assemble.io"</span><span class="nt">></span>Assemble<span class="nt"></a></span>
</pre></div>
<h3 id="add-a-title">Add a title</h3>
<div class="highlight"><pre>[Upstage](https://github.com/upstage/ "Visit Upstage!")
</pre></div>
<p>Renders to (hover over the link, there should be a tooltip):</p>
<p><a href="https://github.com/upstage/" title="Visit Upstage!">Upstage</a></p>
<p>HTML:</p>
<div class="highlight"><pre><span class="nt"><a</span> <span class="na">href=</span><span class="s">"https://github.com/upstage/"</span> <span class="na">title=</span><span class="s">"Visit Upstage!"</span><span class="nt">></span>Upstage<span class="nt"></a></span>
</pre></div>
<h3 id="named-anchors">Named Anchors</h3>
<p>Named anchors enable you to jump to the specified anchor point on the same page. For example, each of these chapters:</p>
<div class="highlight"><pre># Table of Contents
* [Chapter 1](#chapter-1)
* [Chapter 2](#chapter-2)
* [Chapter 3](#chapter-3)
</pre></div>
<p>will jump to these sections:</p>
<div class="highlight"><pre>## Chapter 1 <span class="nt"><a</span> <span class="na">id=</span><span class="s">"chapter-1"</span><span class="nt">></a></span>
Content for chapter one.
## Chapter 2 <span class="nt"><a</span> <span class="na">id=</span><span class="s">"chapter-2"</span><span class="nt">></a></span>
Content for chapter one.
## Chapter 3 <span class="nt"><a</span> <span class="na">id=</span><span class="s">"chapter-3"</span><span class="nt">></a></span>
Content for chapter one.
</pre></div>
<p><strong>NOTE</strong> that specific placement of the anchor tag seems to be arbitrary. They are placed inline here since it seems to be unobtrusive, and it works.</p>
<p><br>
<br>
<br/></br></br></p>
<h2 id="images">Images</h2>
<p>Images have a similar syntax to links but include a preceding exclamation point. </p>
<div class="highlight"><pre>![Minion](/images/minion.png)
</pre></div>
<p><img alt="Minion" src="/images/minion.png" style="width: 896px; height: auto;"/></p>
<p>or</p>
<div class="highlight"><pre><span class="o">!</span><span class="p">[</span><span class="n">Alt</span> <span class="n">text</span><span class="p">](</span><span class="o">/</span><span class="n">images</span><span class="o">/</span><span class="n">stormtroopocat</span><span class="p">.</span><span class="n">jpg</span> <span class="s">"The Stormtroopocat"</span><span class="p">)</span>
</pre></div>
<p><img alt="Alt text" src="/images/stormtroopocat.jpg" style="width: 704px; height: auto;" title="The Stormtroopocat"/></p>
<p>Like links, Images also have a footnote style syntax</p>
<div class="highlight"><pre><span class="o">!</span><span class="p">[</span><span class="n">Alt</span> <span class="n">text</span><span class="p">][</span><span class="kt">id</span><span class="p">]</span>
</pre></div>
<p><img alt="Alt text" src="/images/dojocat.jpg" style="width: 896px; height: auto;" title="The Dojocat"/></p>
<p>With a reference later in the document defining the URL location:</p>
<div class="highlight"><pre>[id]: /images/dojocat.jpg "The Dojocat"
</pre></div>
<section>
<p id="post-share-links">
Share on:
<a href="http://twitter.com/home?status=Markdown%20Typography%20http%3A//utappia.org/markdown.html" target="_blank" title="Share on Twitter">Twitter</a>
❄
<a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Burl%5D=http%3A//utappia.org/markdown.html" target="_blank" title="Share on Facebook">Facebook</a>
❄
<a href="https://plus.google.com/share?url=http%3A//utappia.org/markdown.html" target="_blank" title="Share on Google Plus">Google+</a>
❄
<a href="mailto:?subject=Markdown%20Typography&body=http%3A//utappia.org/markdown.html" target="_blank" title="Share via Email">Email</a>
</p>
</section>
<section>
<p id="comment-message">So what do you think? Did I miss something? Is any part unclear? Please leave your comments below </p>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle disqus-comment-count" data-toggle="collapse" data-parent="#accordion2"
href="http://utappia.org/markdown.html#disqus_thread">
Comments
</a>
</div>
<div id="disqus_thread" class="accordion-body collapse">
<div class="accordion-inner">
<div class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'utappia';
var disqus_identifier = 'http://utappia.org/markdown.html';
var disqus_url = 'http://utappia.org/markdown.html';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
<hr/>
<section>
<h2>Related Posts</h2>
<ul class="related-posts-list">
<li><a href="http://utappia.org/hello-world.html" title="Hello World">Hello World</a></li>
<li><a href="http://utappia.org/pelican-tips.html" title="Pelican Tips">Pelican Tips</a></li>
<li><a href="http://utappia.org/read-me-now.html" title="READ ME NOW">READ ME NOW</a></li>
</ul>
<hr />
</section>
</div>
<section>
<div class="span2" style="float:right;font-size:0.9em;">
<h4>Published</h4>
<time pubdate="pubdate" datetime="2015-04-25T20:31:00+03:00">Apr 25, 2015</time>
<h4>Last Updated</h4>
<time datetime="2015-04-25T20:31:00+03:00">Apr 25, 2015</time>
<h4>Category</h4>
<a class="category-link" href="http://utappia.org/categories.html#web-site-ref">Web Site</a>
<h4>Tags</h4>
<ul class="list-of-tags tags-in-article">
<li><a href="http://utappia.org/tags.html#cheatsheet-ref">cheatsheet
<span>1</span>
</a></li>
<li><a href="http://utappia.org/tags.html#markdown-ref">markdown
<span>1</span>
</a></li>
<li><a href="http://utappia.org/tags.html#publishing-ref">publishing
<span>4</span>
</a></li>
</ul>
<h4>Contact</h4>
<a href="https://plus.google.com/+Salihemin" title="My Google-Plus Profile" class="sidebar-social-links" target="_blank">
<i class="fa fa-google-plus sidebar-social-links"></i></a>
<a href="https://twitter.com/cerebrux" title="My Twitter Profile" class="sidebar-social-links" target="_blank">
<i class="fa fa-twitter sidebar-social-links"></i></a>
<a href="https://github.com/cerebrux" title="My Github Profile" class="sidebar-social-links" target="_blank">
<i class="fa fa-github sidebar-social-links"></i></a>
<a href="https://www.linkedin.com/in/salihemin" title="My linkedin Profile" class="sidebar-social-links" target="_blank">
<i class="fa fa-linkedin sidebar-social-links"></i></a>
<!-- Begin MailChimp Signup Form -->
<div id="mc-embed-signup">
<form action="http://utappia.us10.list-manage.com/subscribe/post?u=43b8fcc4811e0e42e65177af1&id=5759f75729" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<h4>Get Notified</h4>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="your email" required>
<div class="clear"><input type="submit" value="click to subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</form>
</div>
<!--End mc_embed_signup-->
</div>
</section>
</div>
</article>
</div>
<div class="span1"></div>
</div>
</div>
<div id="push"></div>
</div>
<footer>
<div id="footer">
<ul class="footer-content">
<li class="elegant-license"><a rel="license" target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="/images/cc4.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">Utappia.org website</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName"><a href="https://www.linkedin.com/in/salihemin" target="_blank">Salih Emin</a></span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"target="_blank">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.</li>
<li class="elegant-power">Powered by <a href="http://getpelican.com/" title="Pelican Home Page">Pelican</a>. Theme: <a href="http://oncrashreboot.com/pelican-elegant" title="Theme Elegant Home Page">Elegant</a> by <a href="http://oncrashreboot.com" title="Talha Mansoor Home Page">Talha Mansoor</a></li>
</ul>
</div>
</footer> <script src="http://code.jquery.com/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script>
function validateForm(query)
{
return (query.length > 0);
}
</script>
<script type="text/javascript">
var disqus_shortname = 'utappia';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<script language="javascript" type="text/javascript">
function uncollapse() {
if (window.location.hash.match(/^#comment-\d+$/)) {
$('#disqus_thread').collapse('show');
}
}
</script>
<script type="text/javascript" language="JavaScript">
uncollapse();
window.onhashchange=function(){
if (window.location.hash.match(/^#comment-\d+$/))
window.location.reload(true);
}
</script>
<script>
$('#disqus_thread').on('shown', function () {
var link = document.getElementsByClassName('accordion-toggle');
var old_innerHTML = link[0].innerHTML;
$(link[0]).fadeOut(500, function() {
$(this).text('Click here to hide comments').fadeIn(500);
});
$('#disqus_thread').on('hidden', function () {
$(link[0]).fadeOut(500, function() {
$(this).text(old_innerHTML).fadeIn(500);
});
})
})
</script>
</body>
<!-- Theme: Elegant built for Pelican
License : http://oncrashreboot.com/pelican-elegant -->
</html>