-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.html
431 lines (420 loc) · 12.4 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
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
<!DOCTYPE html>
<!--
Get this template from `pandoc -D html`
pandoc version: 2.5
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Markdown Cheatsheet</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<style type="text/css">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<!-- 2021.8.25 by xieby1 created -->
<style>
*,
div.sourceCode {
margin: 0;
}
ul {
padding-inline-start: 1em;
}
p > code, /* inline code */
section > pre, /* unstyled code block */
div.sourceCode /* styled code block */ {
border: 1px solid #e7eaed;
background-color: #f8f8f8;
border-radius: 3px;
}
/* Hide scrollbar for Chrome, Safari and Opera */
div.sourceCode::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
div.sourceCode {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
code.sourceCode {
white-space: pre-wrap;
}
#TOC > ul > li,
section.level2 {
margin: .5em 0 .5em 0;
border: 1px solid #adb3b9;
border-radius: 16px;
box-shadow: #0c0d0e33 0 3px 0, #fff 0 0 0 6px inset;
padding: .2em;
display: flex;
flex-wrap: wrap;
align-items: stretch;
}
section.level3 {
max-width: fit-content;
max-height: fit-content;
overflow: auto;
margin: .2em;
border: 1px solid #adb3b9;
border-radius: 8px;
box-shadow: #0c0d0e33 0 1px 0, #fff 0 0 0 2px inset;
padding: .2em;
flex-grow: 1;
}
h2 {
width: 100%;
}
h2,
h3 {
margin: 0 0 0 0;
}
table,
th,
tr,
td {
border: 1px solid #999;
border-collapse: collapse;
}
#TOC > ul > li > ul {
/* multiple column in first level TOC */
column-width: 6em;
width: 100%;
column-rule: 1px solid #adb3b9;
/* no padding in first level TOC */
padding: 0 0 0 0;
word-wrap: break-word;
}
#TOC > ul > li > ul {
/* no padding in second level TOC */
padding: 0 0 0 0;
}
#TOC > ul > li,
#TOC > ul > li > ul > li {
/* no bullet */
list-style-type: none;
}
/* first level toc content */
#TOC > ul > li > a {
font-weight: bold;
zoom: 120%;
}
/* second level toc content */
#TOC > ul > li > ul > li > a {
background: #0c0d0e33;
}
</style>
</head>
<body>
<nav id="TOC">
<ul>
<li><a href="#markdown-cheatsheet">📃<span>Markdown
Cheatsheet</span></a>
<ul>
<li><a href="#intro">Intro</a>
<ul>
<li><a href="#prerequisite">Prerequisite</a></li>
<li><a href="#install">Install</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="#special-syntax">Special Syntax</a></li>
<li><a href="#feature">Feature</a></li>
<li><a href="#demo">Demo</a></li>
<li><a href="#todo">TODO</a></li>
</ul></li>
</ul></li>
<li><a href="#next-is-the-test">Next is the Test</a>
<ul>
<li><a href="#各国语言">各国语言</a>
<ul>
<li><a href="#你好">你好</a></li>
<li><a href="#hello">Hello</a></li>
<li><a href="#こんにちは">こんにちは</a></li>
<li><a href="#안녕">안녕</a></li>
<li><a href="#привет">Привет</a></li>
<li><a href="#வணககம">வணக்கம்</a></li>
<li><a href="#ciao">Ciao</a></li>
<li><a href="#नमसत">नमस्ते</a></li>
<li><a href="#salve">Salve</a></li>
<li><a href="#ahoj">Ahoj</a></li>
<li><a href="#hola">Hola</a></li>
<li><a href="#halo">Halo</a></li>
<li><a href="#hei">Hei</a></li>
<li><a href="#ahoj-1">Ahoj</a></li>
<li><a href="#selamat-tengahari">Selamat tengahari</a></li>
<li><a href="#hallo">Hallo</a></li>
<li><a href="#مرحبا">مرحبا</a></li>
<li><a href="#aloha">Aloha</a></li>
<li><a href="#hallo-1">Hallo</a></li>
<li><a href="#bonjour">Bonjour</a></li>
<li><a href="#hej">Hej</a></li>
<li><a href="#merhaba">Merhaba</a></li>
<li><a href="#สวสดคะ-สวสดครบ">สวัสดีค่ะ / สวัสดีครับ</a></li>
</ul></li>
<li><a href="#inspired-by">Inspired by</a></li>
</ul></li>
</ul>
</nav>
<section id="markdown-cheatsheet" class="level1">
<h1>📃<a href="https://github.com/xieby1/markdown_cheatsheet">Markdown
Cheatsheet</a></h1>
<p>🤓A Simple, Compact, Static Markdown to Cheatsheet Converter!</p>
<ul>
<li><strong>Demo</strong>
<ul>
<li><a
href="https://xieby1.github.io/markdown_cheatsheet/README.html">This
README</a>.</li>
<li><a href="https://xieby1.github.io/cheatsheet/">My Linux Daily
Command Cheatsheet</a></li>
</ul></li>
</ul>
<section id="intro" class="level2">
<h2>Intro</h2>
<section id="prerequisite" class="level3">
<h3>Prerequisite</h3>
<ul>
<li>shell</li>
<li>pandoc</li>
</ul>
</section>
<section id="install" class="level3">
<h3>Install</h3>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/xieby1/markdown_cheatsheet.git</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">ln</span> <span class="at">-s</span> <span class="op"><</span>path/to<span class="op">></span>/cheatsheet.sh /usr/bin/</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># or /usr/local/bin/, or ~/.local/bin/</span></span></code></pre></div>
</section>
<section id="usage" class="level3">
<h3>Usage</h3>
<ul>
<li><p>Write markdown as usual</p></li>
<li><p>Generate html file like below:</p>
<div class="sourceCode" id="cb2"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">cheatsheet.sh</span> <span class="op"><</span>xxx.md<span class="op">></span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># output: xxx.html</span></span></code></pre></div></li>
</ul>
</section>
<section id="special-syntax" class="level3">
<h3>Special Syntax</h3>
<table>
<thead>
<tr class="header">
<th>syntax</th>
<th>meaning</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>1st-level header</td>
<td>end of a container</td>
</tr>
<tr class="even">
<td>2nd-level header</td>
<td>start of container</td>
</tr>
<tr class="odd">
<td>3nd-level header</td>
<td>start of an item</td>
</tr>
</tbody>
</table>
</section>
<section id="feature" class="level3">
<h3>Feature</h3>
<ul>
<li>Simple, Compact, Static</li>
<li>Adaptive Screen Size</li>
</ul>
</section>
<section id="demo" class="level3">
<h3>Demo</h3>
<p>This README.md is converted:</p>
<p>see it on 📃<a
href="https://xieby1.github.io/markdown_cheatsheet/README.html">Github
Page</a>.</p>
</section>
<section id="todo" class="level3">
<h3>TODO</h3>
<ul>
<li>Support 3rd party theme</li>
<li>TOC column fit content</li>
</ul>
</section>
</section>
</section>
<section id="next-is-the-test" class="level1">
<h1>Next is the Test</h1>
<p>🐱1st-level header will start a new container!</p>
<section id="各国语言" class="level2">
<h2>各国语言</h2>
<section id="你好" class="level3">
<h3>你好</h3>
<p>Chinese</p>
</section>
<section id="hello" class="level3">
<h3>Hello</h3>
<p>English</p>
</section>
<section id="こんにちは" class="level3">
<h3>こんにちは</h3>
<p>Japanese</p>
</section>
<section id="안녕" class="level3">
<h3>안녕</h3>
<p>Korean</p>
</section>
<section id="привет" class="level3">
<h3>Привет</h3>
<p>Russian</p>
</section>
<section id="வணககம" class="level3">
<h3>வணக்கம்</h3>
<p>Tamil</p>
</section>
<section id="ciao" class="level3">
<h3>Ciao</h3>
<p>Italian</p>
</section>
<section id="नमसत" class="level3">
<h3>नमस्ते</h3>
<p>Hindi</p>
</section>
<section id="salve" class="level3">
<h3>Salve</h3>
<p>Latin</p>
</section>
<section id="ahoj" class="level3">
<h3>Ahoj</h3>
<p>Czech</p>
</section>
<section id="hola" class="level3">
<h3>Hola</h3>
<p>Spanish</p>
</section>
<section id="halo" class="level3">
<h3>Halo</h3>
<p>Indonesian</p>
</section>
<section id="hei" class="level3">
<h3>Hei</h3>
<p>Finnish</p>
</section>
<section id="ahoj-1" class="level3">
<h3>Ahoj</h3>
<p>Slovak</p>
</section>
<section id="selamat-tengahari" class="level3">
<h3>Selamat tengahari</h3>
<p>Malaysian</p>
</section>
<section id="hallo" class="level3">
<h3>Hallo</h3>
<p>Dutch</p>
</section>
<section id="مرحبا" class="level3">
<h3>مرحبا</h3>
<p>Arabic</p>
</section>
<section id="aloha" class="level3">
<h3>Aloha</h3>
<p>Hawaiian</p>
</section>
<section id="hallo-1" class="level3">
<h3>Hallo</h3>
<p>Afrikaans</p>
</section>
<section id="bonjour" class="level3">
<h3>Bonjour</h3>
<p>French</p>
</section>
<section id="hej" class="level3">
<h3>Hej</h3>
<p>Swedish</p>
</section>
<section id="merhaba" class="level3">
<h3>Merhaba</h3>
<p>Turkish</p>
</section>
<section id="สวสดคะ-สวสดครบ" class="level3">
<h3>สวัสดีค่ะ / สวัสดีครับ</h3>
<p>Thai</p>
</section>
</section>
<section id="inspired-by" class="level2">
<h2>Inspired by</h2>
<blockquote>
<p>idiv-biodiversity’s <a
href="https://github.com/idiv-biodiversity/pandoc-cheat-sheet">pandoc-cheat-sheet</a></p>
</blockquote>
</section>
</section>
</body>
</html>