-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpopup.html
607 lines (578 loc) · 21.2 KB
/
popup.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
<!doctype html>
<html>
<head>
<title>Markdown Cheatsheet</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery.min.js" defer></script>
<script type="text/javascript" src="js/clipboard.min.js" defer></script>
<script type="text/javascript" src="js/bootstrap.min.js" defer></script>
<script type="text/javascript" src="js/script.js" defer></script>
</head>
<body>
<!-- Nav tabs -->
<ul class="nav nav-tabs width32 fixed-top" role="tablist">
<li role="presentation" class="active width16 textCenter no-transparent">
<a href="#basic" aria-controls="basic" role="tab" data-toggle="tab">Basic</a>
</li>
<li role="presentation" class="width16 textCenter no-transparent">
<a href="#gfm" aria-controls="gfm" role="tab" data-toggle="tab">GFM</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Basic Markdown -->
<div role="tabpanel" class="tab-pane active" id="basic">
<div class="header">
<span class="title"> Headers </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<h1>h1 Heading</h1>
<h2>h2 Heading</h2>
<h3>h3 Heading</h3>
<h4>h4 Heading</h4>
<h5>h5 Heading</h5>
<h6>h6 Heading</h6>
" data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="headers">
<li> <code>#</code> h1 Heading </li>
<li> <code>##</code> h2 Heading </li>
<li> <code>###</code> h3 Heading </li>
<li> <code>####</code> h4 Heading </li>
<li> <code>#####</code> h5 Heading </li>
<li> <code>######</code> h6 Heading </li>
</ul>
</div>
<div class="header">
<span class="title"> Horizontal Rules </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<hr>
<hr>
<hr>
" data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="horizontal-rules">
<li> <code>___</code> 3 consecutive underscores </li>
<li> <code>---</code> 3 consecutive dashes </li>
<li> <code>***</code> 3 consecutive asterisks </li>
</ul>
</div>
<div class="header">
<span class="title"> Body Copy </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="<p>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.</p>"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="body-copy">
<li> Body copy written as normal, plain text will be wrapped with <code> < p>< /p> </code> tags in the rendered HTML </li>
</ul>
</div>
<div class="header">
<span class="title"> Emphasis </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<ul>
<li> <strong>rendered as bold text</strong> </li>
<li> <em>rendered as italicized text</em> </li>
<li> <strike>Strike through this text</strike> </li>
</ul>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="emphasis">
<li> <code>** rendered as bold text **</code> </li>
<li> <code>_ rendered as italicized text _</code> </li>
<li> <code>~~ Strike through this text ~~</code> </li>
</ul>
</div>
<div class="header">
<span class="title"> Blockquotes </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="blockquotes">
<li> Add <code> > </code> before any text you want to quote</li>
</ul>
</div>
<div class="header">
<span class="title"> Lists </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<b>Unordered</b>
<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
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
<b>Ordered</b>
<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>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="lists">
<li> Unordered
<ul>
<li> <code>* valid bullet</code> </li>
<li> <code>- valid bullet</code> </li>
<li> <code>+ valid bullet</code> </li>
<b>Example</b>
<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 porttitorsem
- Ac tristique libero volutpat at
+ Faucibus porta lacus fringilla vel
+ Aenean sit amet erat nunc
+ Eget porttitor lorem
</pre>
</ul>
</li>
<li> Ordered
<ul>
<li> <code>1. Lorem ipsum dolor sit amet</code> </li>
<li> <code>2. Consectetur adipiscing elit</code> </li>
<li> <code>3. Integer molestie lorem at massa</code> </li>
</ul>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Code </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<b>Inline code</b>
<p>For example, <code>< section>< /section></code> should be wrapped as 'inline'.</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="code">
<li> Inline code
<ul>
<li> Wrap inline snippets of code with <code>`</code> </li>
</ul>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Links </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<b>Basic link</b>
<p><a href='http://markdown.github.io'>Markdown</a></p>
<b>Add a title</b>
<p><a href='https://github.com/markdown/' title='Visit markdown!'>Markdown</a></p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="links">
<li>Basic link <code>[Markdown](http://markdown.github.io)</code> </li>
<li>Add a title <code>[Markdown](https://github.com/markdown/ "Visit markdown!")</code> </li>
<li>Named Anchors <code>* [Chapter 1](#chapter-1)</code> </li>
</ul>
</div>
<div class="header">
<span class="title"> Images </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<img src='https://camo.githubusercontent.com/21dbea15b90151a65e7f77d17be4270619e0c10f/687474703a2f2f6f63746f6465782e6769746875622e636f6d2f696d616765732f6d696e696f6e2e706e67' alt='Minion' data-canonical-src='http://octodex.github.com/images/minion.png' style='max-width:100%;'>
</p>
<b>or</b>
<p>
<img src='https://camo.githubusercontent.com/6f1e9bd4ebd02f42ff14f7960b783a647d3458be/687474703a2f2f6f63746f6465782e6769746875622e636f6d2f696d616765732f73746f726d74726f6f706f6361742e6a7067' alt='Alt text' title='The Stormtroopocat' data-canonical-src='http://octodex.github.com/images/stormtroopocat.jpg' style='max-width:100%;'>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="images">
<li> <code>![Minion](http://octodex.github.com/images/minion.png)</code> </li>
<li> <code>![Alt text](http://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")</code> </li>
<li> <code>![Alt text][id]</code> </li>
</ul>
</div>
</div>
<!-- Github Flavored Markdown -->
<div role="tabpanel" class="tab-pane" id="gfm">
<div class="header">
<span class="title"> Code </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<b>Indented code</b>
<p><code> // it's 1st comment</code></p>
<p><code> // it's 2nd comment</code></p>
<b>Block code 'fences'</b>
<pre>
<p>Sample text here...</p>
</pre>
<pre><code>function fancyAlert(arg) {</code>
<code> if(arg) {</code>
<code> $.facebox({div:'#foo'})</code>
<code> }</code>
<code>}</code></pre>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-code">
<li> Indented code
<ul>
<li> Indent several lines of code by at least 4 spaces, as in:
<code> // it's a comment </code>
</li>
</ul>
</li>
<li> Block code "fences"
<ul>
<li> Use "fences" <code>```</code> to block in multiple lines of code. </li>
</ul>
</li>
<li> Syntax highlighting
<ul>
<li>
<pre>
```javascript
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
```
</pre>
</li>
</ul>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Tasks List </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<input type='checkbox' checked='' disabled=''> <a href='#' class='user-mention'>@mentions</a>, #refs, <a href='#'>links</a>, <strong>formatting</strong>, and <del>tags</del> supported </input> <br />
<input type='checkbox' checked='' disabled=''> list syntax required (any unordered or ordered list supported) </input><br />
<input type='checkbox' checked='' disabled=''> this is a complete item </input><br />
<input type='checkbox' disabled=''> this is an incomplete item </input><br />
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-tasks-list">
<li>
<p>
If you include a task list in the first comment of an Issue, you will get a handy progress indicator in your issue list.
It also works in Pull Requests!
</p>
<b>Example</b>
<pre>
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Tables </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<table>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
<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>
</table>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-tables">
<li>
<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>
<b>Example</b>
<pre>
| Option | Description |
| ------ | ----------- |
| data | path to data files. |
| engine | engine to be used for processing templates. |
| ext | extension to be used for dest files. |
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Strikethrough </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<del>this is crossed out text</del>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-strikethrough">
<li>
<p>
Any word wrapped with two tildes (like <code>~~this~~</code>) will appear crossed out.
</p>
<b>Example</b>
<pre>
~~this is crossed out text~~
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> SHA references </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<a href='https://github.com/greybax/MarkdownCheatsheet/commit/145c502a3effd911879dfc077e6e0922bb686a06' target='blank'><tt>145c502</tt></a><br>
<a href='https://github.com/greybax/MarkdownCheatsheet/commit/145c502a3effd911879dfc077e6e0922bb686a06' target='blank'>greybax@<tt>145c502</tt></a><br>
<a href='https://github.com/greybax/MarkdownCheatsheet/commit/145c502a3effd911879dfc077e6e0922bb686a06' target='blank'>greybax/MarkdownCheatsheet@<tt>145c502</tt></a>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-sha-references">
<li>
<p>
Any reference to a commit’s SHA-1 hash will be automatically converted into a link to that commit on GitHub.
</p>
<b>Example</b>
<pre>
145c502a3effd911879dfc077e6e0922bb686a06
greybax@145c502a3effd911879dfc077e6e0922bb686a06
greybax/MarkdownCheatsheet@145c502a3effd911879dfc077e6e0922bb686a06
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Issue references within a repository </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<a href='https://github.com/greybax/MarkdownCheatsheet/issues/1' title='Add GFM' target='blank'>#1</a><br>
<a href='https://github.com/greybax/MarkdownCheatsheet/issues/1' title='Add GFM' target='blank'>greybax#1</a><br>
<a href='https://github.com/greybax/MarkdownCheatsheet/issues/1' title='Add GFM' target='blank'>greybax/MarkdownCheatsheet#1</a>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-issue-references-within-a-repository">
<li>
<p>
Any number that refers to an Issue or Pull Request will be automatically converted into a link.
</p>
<b>Example</b>
<pre>
#1
greybax#1
greybax/MarkdownCheatsheet#1
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Username @mentions </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<a href='https://github.com/greybax' title='greybax' target='blank'>greybax</a><br>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-username-mentions">
<li>
<p>
Typing an <code>@</code> symbol, followed by a username, will notify that person to come and view the comment.
This is called an “@mention”, because you’re mentioning the individual. You can also @mention teams within an
organization.
</p>
<b>Example</b>
<pre>
@greybax
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Automatic linking for URLs </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
<a href='https://github.com' target='blank'>github.com</a>
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-automatic-linking-for-urls">
<li>
<p>
Any URL (like <code>http://www.github.com/</code>) will be automatically converted into a clickable link.
</p>
<b>Example</b>
<pre>
http://www.github.com/
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Emoji </span>
<span class="question">
<a tabindex="0" role="button" data-toggle="popover" data-placement="left" data-trigger="focus" title="Renders to" data-content="
<p>
To see a list of every image GitHub support, check out the
<a href='http://www.emoji-cheat-sheet.com/' target='blank'>Emoji Cheat Sheet</a>.
</p>
"
data-html="true"> renders to </a>
<img src="images/question.png" />
</span>
</div>
<div class="container">
<ul id="gfm-emoji">
<li>
<p>
GitHub supports emoji!
</p>
<b>Example</b>
<pre>
:sparkles: :camel: :boom:
</pre>
</li>
</ul>
</div>
<div class="header">
<span class="title"> Footnotes </span>
</div>
<div class="container">
<ul id="gfm-footnotes">
<li>
<b>Example</b>
<pre>
Here is a simple footnote[^1].
A footnote can also have multiple lines[^2].
You can also use words, to fit your writing style more closely[^note].
[^1]: My reference.
[^2]: Every new line should be prefixed with 2 spaces.
This allows you to have a footnote with multiple lines.
[^note]:
Named footnotes will still render with numbers instead of the text but allow easier identification and linking.
This footnote also has been made with a different syntax using 4 spaces for new lines.
</pre>
</li>
</ul>
</div>
</div>
</div>
</body>
<footer>
<span class="left">
Data from <a href="https://guides.github.com/features/mastering-markdown" target="blank">guides.github.com/features/mastering-markdown</a>
</span>
<span class="right">
<a href="https://github.com/greybax/MarkdownCheatsheet" target="blank">See on GitHub
<img src="images/github.png" alt="">
</a>
</span>
</footer>
</html>