mdown2pdf 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b4c40fa040348d87c744114ad53f60e035f1c25e
4
+ data.tar.gz: d74e8c499247face90796f1f5b50e8c3b87acdef
5
+ SHA512:
6
+ metadata.gz: 23e5c06a68f511ebcc4cfd484eaca1e2780d17d41f5e19c3a60354e31cd1f919c23ba08f73a87e2dfca5882621c4d7b560c44c09bce352a27411ac3668dd74ff
7
+ data.tar.gz: cb491e6ee826fbe75326f6e7e32b0c874ff305dfa3610fc69fecc0665f75d870f38fd50eafe4f2b70c0712cb61e27dc8c7aaa25733fe6f02925c6e22d0622362
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in mdown2pdf.gemspec
4
+ gemspec
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mdown2pdf (0.1.0)
5
+ redcarpet (~> 3.4.0)
6
+ rouge (~> 2.1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ minitest (5.10.2)
12
+ rake (10.5.0)
13
+ redcarpet (3.4.0)
14
+ rouge (2.1.0)
15
+
16
+ PLATFORMS
17
+ ruby
18
+
19
+ DEPENDENCIES
20
+ bundler (~> 1.15)
21
+ mdown2pdf!
22
+ minitest (~> 5.0)
23
+ rake (~> 10.0)
24
+
25
+ BUNDLED WITH
26
+ 1.15.1
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Robin Dupret
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,63 @@
1
+ # Mdown2PDF - Convert Markdown documents to PDF
2
+
3
+ This tiny project is a wrapper around the following libraries to generate PDF from
4
+ Markdown files:
5
+
6
+ * [Redcarpet](https://github.com/vmg/redcarpet) : to parse Markdown and produce HTML.
7
+ * [Rouge](https://github.com/jneen/rouge) : to support syntax highlighting.
8
+ * [wkhtmltopdf](https://wkhtmltopdf.org/) : to transform the HTML markup to a PDF file.
9
+
10
+ > **Important note**: This project has been designed for my personal need; it's far
11
+ > from being perfect but feel free to fork it to fit to yours. ❤️
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ~~~ruby
18
+ gem 'mdown2pdf'
19
+ ~~~
20
+
21
+ And then execute:
22
+
23
+ ~~~
24
+ $ bundle
25
+ ~~~
26
+
27
+ Or install it yourself as:
28
+
29
+ ~~~
30
+ $ gem install mdown2pdf
31
+ ~~~
32
+
33
+ ## Usage
34
+
35
+ This gems provides a command line utility to easily convert your Markdown files
36
+ to PDF. For example:
37
+
38
+ ~~~
39
+ $ md2pdf resume.md
40
+ ~~~
41
+
42
+ Will produce a file called resume.pdf, properly styled with a table of contents.
43
+ You can specify the output file and even opt out from the default table of contents
44
+ generation with the following options:
45
+
46
+ ~~~
47
+ $ md2pdf resume.md -o my_resume.pdf --skip-toc
48
+ ~~~
49
+
50
+ ## Contributing
51
+
52
+ Bug reports and pull requests are welcome on GitHub. If you are willing to send
53
+ a patch:
54
+
55
+ 1. Fork this project.
56
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
57
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
58
+ 4. Push to the branch (`git push origin my-new-feature`)
59
+ 5. Create new Pull Request
60
+
61
+ ## License
62
+
63
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,11 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.warning = false
8
+ t.test_files = FileList["test/**/*_test.rb"]
9
+ end
10
+
11
+ task :default => :test
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ </head>
6
+
7
+ <body>
8
+ <div class="markdown-body" style="width: 960px; margin: auto">
9
+ %{content}
10
+ </div>
11
+ </body>
12
+ </html>
@@ -0,0 +1,762 @@
1
+ .pagebreak {
2
+ page-break-before: always;
3
+ }
4
+
5
+ .markdown-body table {
6
+ margin-left: 10px!important;
7
+ border: 1px solid #ccc;
8
+ border-right: 2px solid #ccc;
9
+ }
10
+
11
+ .markdown-body table td {
12
+ padding-left: 12px!important;
13
+ padding-right: 12px!important;
14
+ padding-top: 10px!important;
15
+ padding-bottom: 10px!important;
16
+ }
17
+
18
+ .markdown-body h1.center::before,
19
+ .markdown-body h1.center::after {
20
+ display: block;
21
+ content: ' ';
22
+ }
23
+
24
+ .markdown-body h1.center::before {
25
+ height: 15cm;
26
+ }
27
+
28
+ .markdown-body h1.center::after {
29
+ height: 18cm;
30
+ }
31
+
32
+ .markdown-body h1.center {
33
+ text-align: center;
34
+ border: 0;
35
+ }
36
+
37
+ .left {
38
+ margin-top: 20cm;
39
+ }
40
+
41
+ .right {
42
+ position: absolute;
43
+ right: 0;
44
+ }
45
+
46
+ .markdown-body {
47
+ -webkit-text-size-adjust: 100%;
48
+ text-size-adjust: 100%;
49
+ color: #333;
50
+ font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
51
+ font-size: 17px;
52
+ line-height: 1.6;
53
+ word-wrap: break-word;
54
+ }
55
+
56
+ .markdown-body a {
57
+ background-color: transparent;
58
+ }
59
+ .markdown-body h1 {
60
+ text-align: center;
61
+ }
62
+ .markdown-body a:active,
63
+ .markdown-body a:hover {
64
+ outline: 0;
65
+ }
66
+
67
+ .markdown-body strong {
68
+ font-weight: bold;
69
+ }
70
+
71
+ .markdown-body h1 {
72
+ font-size: 2em;
73
+ margin: 0.67em 0;
74
+ }
75
+
76
+ .markdown-body img {
77
+ border: 0;
78
+ }
79
+
80
+ .markdown-body hr {
81
+ box-sizing: content-box;
82
+ height: 0;
83
+ }
84
+
85
+ .markdown-body pre {
86
+ overflow: auto;
87
+ }
88
+
89
+ .markdown-body code,
90
+ .markdown-body kbd,
91
+ .markdown-body pre {
92
+ font-family: monospace, monospace;
93
+ font-size: 1em;
94
+ }
95
+
96
+ .markdown-body input {
97
+ color: inherit;
98
+ font: inherit;
99
+ margin: 0;
100
+ }
101
+
102
+ .markdown-body html input[disabled] {
103
+ cursor: default;
104
+ }
105
+
106
+ .markdown-body input {
107
+ line-height: normal;
108
+ }
109
+
110
+ .markdown-body input[type="checkbox"] {
111
+ box-sizing: border-box;
112
+ padding: 0;
113
+ }
114
+
115
+ .markdown-body table {
116
+ border-collapse: collapse;
117
+ border-spacing: 0;
118
+ display: table!important;
119
+ margin: auto;
120
+ }
121
+
122
+ .markdown-body td,
123
+ .markdown-body th {
124
+ padding: 0;
125
+ }
126
+
127
+ .markdown-body * {
128
+ box-sizing: border-box;
129
+ }
130
+
131
+ .markdown-body input {
132
+ font: 13px / 1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
133
+ }
134
+
135
+ .markdown-body a {
136
+ color: #4078c0;
137
+ text-decoration: none;
138
+ }
139
+
140
+ .markdown-body a:hover,
141
+ .markdown-body a:active {
142
+ text-decoration: underline;
143
+ }
144
+
145
+ .markdown-body hr {
146
+ height: 0;
147
+ margin: 15px 0;
148
+ overflow: hidden;
149
+ background: transparent;
150
+ border: 0;
151
+ border-bottom: 1px solid #ddd;
152
+ }
153
+
154
+ .markdown-body hr:before {
155
+ display: table;
156
+ content: "";
157
+ }
158
+
159
+ .markdown-body hr:after {
160
+ display: table;
161
+ clear: both;
162
+ content: "";
163
+ }
164
+
165
+ .markdown-body h1,
166
+ .markdown-body h2,
167
+ .markdown-body h3,
168
+ .markdown-body h4,
169
+ .markdown-body h5,
170
+ .markdown-body h6 {
171
+ margin-top: 1.5em;
172
+ margin-bottom: 15px;
173
+ line-height: 1.1;
174
+ }
175
+
176
+ .markdown-body h1 {
177
+ font-size: 30px;
178
+ }
179
+
180
+ .markdown-body h2 {
181
+ font-size: 21px;
182
+ }
183
+
184
+ .markdown-body h3 {
185
+ font-size: 16px;
186
+ }
187
+
188
+ .markdown-body h4 {
189
+ font-size: 14px;
190
+ }
191
+
192
+ .markdown-body h5 {
193
+ font-size: 12px;
194
+ }
195
+
196
+ .markdown-body h6 {
197
+ font-size: 11px;
198
+ }
199
+
200
+ .markdown-body blockquote {
201
+ margin: 0;
202
+ }
203
+
204
+ .markdown-body ul,
205
+ .markdown-body ol {
206
+ padding: 0;
207
+ margin-top: 0;
208
+ margin-bottom: 0;
209
+ }
210
+
211
+ .markdown-body ol ol,
212
+ .markdown-body ul ol {
213
+ list-style-type: lower-roman;
214
+ }
215
+
216
+ .markdown-body ul ul ol,
217
+ .markdown-body ul ol ol,
218
+ .markdown-body ol ul ol,
219
+ .markdown-body ol ol ol {
220
+ list-style-type: lower-alpha;
221
+ }
222
+
223
+ .markdown-body dd {
224
+ margin-left: 0;
225
+ }
226
+
227
+ .markdown-body code {
228
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
229
+ font-size: 17px;
230
+ }
231
+
232
+ .markdown-body pre {
233
+ margin-top: 0;
234
+ margin-bottom: 0;
235
+ font: 17px Consolas, "Liberation Mono", Menlo, Courier, monospace;
236
+ }
237
+
238
+ .markdown-body .select::-ms-expand {
239
+ opacity: 0;
240
+ }
241
+
242
+ .markdown-body .octicon {
243
+ font: normal normal normal 16px/1 octicons-link;
244
+ display: inline-block;
245
+ text-decoration: none;
246
+ text-rendering: auto;
247
+ -webkit-font-smoothing: antialiased;
248
+ -moz-osx-font-smoothing: grayscale;
249
+ -webkit-user-select: none;
250
+ -moz-user-select: none;
251
+ -ms-user-select: none;
252
+ user-select: none;
253
+ }
254
+
255
+ .markdown-body .octicon-link:before {
256
+ content: '\f05c';
257
+ }
258
+
259
+ .markdown-body:before {
260
+ display: table;
261
+ content: "";
262
+ }
263
+
264
+ .markdown-body:after {
265
+ display: table;
266
+ clear: both;
267
+ content: "";
268
+ }
269
+
270
+ .markdown-body>*:first-child {
271
+ margin-top: 0 !important;
272
+ }
273
+
274
+ .markdown-body>*:last-child {
275
+ margin-bottom: 0 !important;
276
+ }
277
+
278
+ .markdown-body a:not([href]) {
279
+ color: inherit;
280
+ text-decoration: none;
281
+ }
282
+
283
+ .markdown-body .anchor {
284
+ display: inline-block;
285
+ padding-right: 2px;
286
+ margin-left: -18px;
287
+ }
288
+
289
+ .markdown-body .anchor:focus {
290
+ outline: none;
291
+ }
292
+
293
+ .markdown-body h1,
294
+ .markdown-body h2,
295
+ .markdown-body h3,
296
+ .markdown-body h4,
297
+ .markdown-body h5,
298
+ .markdown-body h6 {
299
+ margin-top: 1em;
300
+ margin-bottom: 16px;
301
+ font-weight: bold;
302
+ line-height: 1.4;
303
+ }
304
+
305
+ .markdown-body h1 .octicon-link,
306
+ .markdown-body h2 .octicon-link,
307
+ .markdown-body h3 .octicon-link,
308
+ .markdown-body h4 .octicon-link,
309
+ .markdown-body h5 .octicon-link,
310
+ .markdown-body h6 .octicon-link {
311
+ color: #000;
312
+ vertical-align: middle;
313
+ visibility: hidden;
314
+ }
315
+
316
+ .markdown-body h1:hover .anchor,
317
+ .markdown-body h2:hover .anchor,
318
+ .markdown-body h3:hover .anchor,
319
+ .markdown-body h4:hover .anchor,
320
+ .markdown-body h5:hover .anchor,
321
+ .markdown-body h6:hover .anchor {
322
+ text-decoration: none;
323
+ }
324
+
325
+ .markdown-body h1:hover .anchor .octicon-link,
326
+ .markdown-body h2:hover .anchor .octicon-link,
327
+ .markdown-body h3:hover .anchor .octicon-link,
328
+ .markdown-body h4:hover .anchor .octicon-link,
329
+ .markdown-body h5:hover .anchor .octicon-link,
330
+ .markdown-body h6:hover .anchor .octicon-link {
331
+ visibility: visible;
332
+ }
333
+
334
+ .markdown-body h1 {
335
+ padding-bottom: 0.3em;
336
+ font-size: 2.25em;
337
+ line-height: 1.2;
338
+ border-bottom: 1px solid #eee;
339
+ }
340
+
341
+ .markdown-body h1 .anchor {
342
+ line-height: 1;
343
+ }
344
+
345
+ .markdown-body h2 {
346
+ padding-bottom: 0.3em;
347
+ font-size: 1.75em;
348
+ line-height: 1.225;
349
+ border-bottom: 1px solid #eee;
350
+ }
351
+
352
+ .markdown-body h2 .anchor {
353
+ line-height: 1;
354
+ }
355
+
356
+ .markdown-body h3 {
357
+ font-size: 1.5em;
358
+ line-height: 1.43;
359
+ }
360
+
361
+ .markdown-body h3 .anchor {
362
+ line-height: 1.2;
363
+ }
364
+
365
+ .markdown-body h4 {
366
+ font-size: 1.25em;
367
+ }
368
+
369
+ .markdown-body h4 .anchor {
370
+ line-height: 1.2;
371
+ }
372
+
373
+ .markdown-body h5 {
374
+ font-size: 1em;
375
+ }
376
+
377
+ .markdown-body h5 .anchor {
378
+ line-height: 1.1;
379
+ }
380
+
381
+ .markdown-body h6 {
382
+ font-size: 1em;
383
+ color: #777;
384
+ }
385
+
386
+ .markdown-body h6 .anchor {
387
+ line-height: 1.1;
388
+ }
389
+
390
+ .markdown-body p,
391
+ .markdown-body blockquote,
392
+ .markdown-body ul,
393
+ .markdown-body ol,
394
+ .markdown-body dl,
395
+ .markdown-body table,
396
+ .markdown-body pre {
397
+ margin-top: 0;
398
+ margin-bottom: 16px;
399
+ }
400
+
401
+ .markdown-body hr {
402
+ height: 4px;
403
+ padding: 0;
404
+ margin: 16px 0;
405
+ background-color: #e7e7e7;
406
+ border: 0 none;
407
+ }
408
+
409
+ .markdown-body ul,
410
+ .markdown-body ol {
411
+ padding-left: 2em;
412
+ }
413
+
414
+ .markdown-body ul ul,
415
+ .markdown-body ul ol,
416
+ .markdown-body ol ol,
417
+ .markdown-body ol ul {
418
+ margin-top: 0;
419
+ margin-bottom: 0;
420
+ }
421
+
422
+ .markdown-body li>p {
423
+ margin-top: 16px;
424
+ }
425
+
426
+ .markdown-body dl {
427
+ padding: 0;
428
+ }
429
+
430
+ .markdown-body dl dt {
431
+ padding: 0;
432
+ margin-top: 16px;
433
+ font-size: 1em;
434
+ font-style: italic;
435
+ font-weight: bold;
436
+ }
437
+
438
+ .markdown-body dl dd {
439
+ padding: 0 16px;
440
+ margin-bottom: 16px;
441
+ }
442
+
443
+ .markdown-body blockquote {
444
+ padding: 0 15px;
445
+ color: #777;
446
+ border-left: 4px solid #ddd;
447
+ }
448
+
449
+ .markdown-body blockquote>:first-child {
450
+ margin-top: 0;
451
+ }
452
+
453
+ .markdown-body blockquote>:last-child {
454
+ margin-bottom: 0;
455
+ }
456
+
457
+ .markdown-body table {
458
+ display: block;
459
+ width: 100%;
460
+ overflow: auto;
461
+ word-break: normal;
462
+ word-break: keep-all;
463
+ }
464
+
465
+ .markdown-body table th {
466
+ font-weight: bold;
467
+ }
468
+
469
+ .markdown-body table th,
470
+ .markdown-body table td {
471
+ padding: 6px 13px;
472
+ border: 1px solid #ddd;
473
+ }
474
+
475
+ .markdown-body table tr {
476
+ background-color: #fff;
477
+ border-top: 1px solid #ccc;
478
+ }
479
+
480
+ .markdown-body table tr:nth-child(2n) {
481
+ background-color: #f8f8f8;
482
+ }
483
+
484
+ .markdown-body img {
485
+ max-width: 100%;
486
+ box-sizing: content-box;
487
+ background-color: #fff;
488
+ }
489
+
490
+ .markdown-body code {
491
+ padding: 0;
492
+ padding-top: 0.2em;
493
+ padding-bottom: 0.2em;
494
+ margin: 0;
495
+ font-size: 85%;
496
+ background-color: rgba(0,0,0,0.04);
497
+ border-radius: 3px;
498
+ }
499
+
500
+ .markdown-body code:before,
501
+ .markdown-body code:after {
502
+ letter-spacing: -0.2em;
503
+ content: "\00a0";
504
+ }
505
+
506
+ .markdown-body pre>code {
507
+ padding: 0;
508
+ margin: 0;
509
+ font-size: 100%;
510
+ word-break: normal;
511
+ white-space: pre;
512
+ background: transparent;
513
+ border: 0;
514
+ }
515
+
516
+ .markdown-body .highlight {
517
+ margin-bottom: 16px;
518
+ }
519
+
520
+ .markdown-body .highlight pre,
521
+ .markdown-body pre {
522
+ padding: 16px;
523
+ overflow: auto;
524
+ font-size: 85%;
525
+ line-height: 1.45;
526
+ background-color: #f7f7f7;
527
+ border-radius: 3px;
528
+ }
529
+
530
+ .markdown-body .highlight pre {
531
+ margin-bottom: 0;
532
+ word-break: normal;
533
+ }
534
+
535
+ .markdown-body pre {
536
+ word-wrap: normal;
537
+ }
538
+
539
+ .markdown-body pre code {
540
+ display: inline;
541
+ max-width: initial;
542
+ padding: 0;
543
+ margin: 0;
544
+ overflow: initial;
545
+ line-height: inherit;
546
+ word-wrap: normal;
547
+ background-color: transparent;
548
+ border: 0;
549
+ }
550
+
551
+ .markdown-body pre code:before,
552
+ .markdown-body pre code:after {
553
+ content: normal;
554
+ }
555
+
556
+ .markdown-body kbd {
557
+ display: inline-block;
558
+ padding: 3px 5px;
559
+ font-size: 11px;
560
+ line-height: 10px;
561
+ color: #555;
562
+ vertical-align: middle;
563
+ background-color: #fcfcfc;
564
+ border: solid 1px #ccc;
565
+ border-bottom-color: #bbb;
566
+ border-radius: 3px;
567
+ box-shadow: inset 0 -1px 0 #bbb;
568
+ }
569
+
570
+ .markdown-body .pl-c {
571
+ color: #969896;
572
+ }
573
+
574
+ .markdown-body .pl-c1,
575
+ .markdown-body .pl-s .pl-v {
576
+ color: #0086b3;
577
+ }
578
+
579
+ .markdown-body .pl-e,
580
+ .markdown-body .pl-en {
581
+ color: #795da3;
582
+ }
583
+
584
+ .markdown-body .pl-s .pl-s1,
585
+ .markdown-body .pl-smi {
586
+ color: #333;
587
+ }
588
+
589
+ .markdown-body .pl-ent {
590
+ color: #63a35c;
591
+ }
592
+
593
+ .markdown-body .pl-k {
594
+ color: #a71d5d;
595
+ }
596
+
597
+ .markdown-body .pl-pds,
598
+ .markdown-body .pl-s,
599
+ .markdown-body .pl-s .pl-pse .pl-s1,
600
+ .markdown-body .pl-sr,
601
+ .markdown-body .pl-sr .pl-cce,
602
+ .markdown-body .pl-sr .pl-sra,
603
+ .markdown-body .pl-sr .pl-sre {
604
+ color: #183691;
605
+ }
606
+
607
+ .markdown-body .pl-v {
608
+ color: #ed6a43;
609
+ }
610
+
611
+ .markdown-body .pl-id {
612
+ color: #b52a1d;
613
+ }
614
+
615
+ .markdown-body .pl-ii {
616
+ background-color: #b52a1d;
617
+ color: #f8f8f8;
618
+ }
619
+
620
+ .markdown-body .pl-sr .pl-cce {
621
+ color: #63a35c;
622
+ font-weight: bold;
623
+ }
624
+
625
+ .markdown-body .pl-ml {
626
+ color: #693a17;
627
+ }
628
+
629
+ .markdown-body .pl-mh,
630
+ .markdown-body .pl-mh .pl-en,
631
+ .markdown-body .pl-ms {
632
+ color: #1d3e81;
633
+ font-weight: bold;
634
+ }
635
+
636
+ .markdown-body .pl-mq {
637
+ color: #008080;
638
+ }
639
+
640
+ .markdown-body .pl-mi {
641
+ color: #333;
642
+ font-style: italic;
643
+ }
644
+
645
+ .markdown-body .pl-mb {
646
+ color: #333;
647
+ font-weight: bold;
648
+ }
649
+
650
+ .markdown-body .pl-md {
651
+ background-color: #ffecec;
652
+ color: #bd2c00;
653
+ }
654
+
655
+ .markdown-body .pl-mi1 {
656
+ background-color: #eaffea;
657
+ color: #55a532;
658
+ }
659
+
660
+ .markdown-body .pl-mdr {
661
+ color: #795da3;
662
+ font-weight: bold;
663
+ }
664
+
665
+ .markdown-body .pl-mo {
666
+ color: #1d3e81;
667
+ }
668
+
669
+ .markdown-body kbd {
670
+ display: inline-block;
671
+ padding: 3px 5px;
672
+ font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
673
+ line-height: 10px;
674
+ color: #555;
675
+ vertical-align: middle;
676
+ background-color: #fcfcfc;
677
+ border: solid 1px #ccc;
678
+ border-bottom-color: #bbb;
679
+ border-radius: 3px;
680
+ box-shadow: inset 0 -1px 0 #bbb;
681
+ }
682
+
683
+ .markdown-body .task-list-item {
684
+ list-style-type: none;
685
+ }
686
+
687
+ .markdown-body .task-list-item+.task-list-item {
688
+ margin-top: 3px;
689
+ }
690
+
691
+ .markdown-body .task-list-item input {
692
+ margin: 0 0.35em 0.25em -1.6em;
693
+ vertical-align: middle;
694
+ }
695
+
696
+ .markdown-body :checked+.radio-label {
697
+ z-index: 1;
698
+ position: relative;
699
+ border-color: #4078c0;
700
+ }
701
+
702
+ .highlight .hll { background-color: #ffffcc }
703
+ .highlight .c { color: #999988; font-style: italic } /* Comment */
704
+ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
705
+ .highlight .k { color: #000000; font-weight: bold } /* Keyword */
706
+ .highlight .o { color: #000000; font-weight: bold } /* Operator */
707
+ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
708
+ .highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
709
+ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
710
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
711
+ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
712
+ .highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
713
+ .highlight .gr { color: #aa0000 } /* Generic.Error */
714
+ .highlight .gh { color: #999999 } /* Generic.Heading */
715
+ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
716
+ .highlight .go { color: #888888 } /* Generic.Output */
717
+ .highlight .gp { color: #555555 } /* Generic.Prompt */
718
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
719
+ .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
720
+ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
721
+ .highlight .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
722
+ .highlight .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
723
+ .highlight .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
724
+ .highlight .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
725
+ .highlight .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
726
+ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
727
+ .highlight .m { color: #009999 } /* Literal.Number */
728
+ .highlight .s { color: #d01040 } /* Literal.String */
729
+ .highlight .na { color: #008080 } /* Name.Attribute */
730
+ .highlight .nb { color: #0086B3 } /* Name.Builtin */
731
+ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
732
+ .highlight .no { color: #008080 } /* Name.Constant */
733
+ .highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
734
+ .highlight .ni { color: #800080 } /* Name.Entity */
735
+ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
736
+ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
737
+ .highlight .nl { color: #990000; font-weight: bold } /* Name.Label */
738
+ .highlight .nn { color: #555555 } /* Name.Namespace */
739
+ .highlight .nt { color: #000080 } /* Name.Tag */
740
+ .highlight .nv { color: #008080 } /* Name.Variable */
741
+ .highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
742
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
743
+ .highlight .mf { color: #009999 } /* Literal.Number.Float */
744
+ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
745
+ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
746
+ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
747
+ .highlight .sb { color: #d01040 } /* Literal.String.Backtick */
748
+ .highlight .sc { color: #d01040 } /* Literal.String.Char */
749
+ .highlight .sd { color: #d01040 } /* Literal.String.Doc */
750
+ .highlight .s2 { color: #d01040 } /* Literal.String.Double */
751
+ .highlight .se { color: #d01040 } /* Literal.String.Escape */
752
+ .highlight .sh { color: #d01040 } /* Literal.String.Heredoc */
753
+ .highlight .si { color: #d01040 } /* Literal.String.Interpol */
754
+ .highlight .sx { color: #d01040 } /* Literal.String.Other */
755
+ .highlight .sr { color: #009926 } /* Literal.String.Regex */
756
+ .highlight .s1 { color: #d01040 } /* Literal.String.Single */
757
+ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
758
+ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
759
+ .highlight .vc { color: #008080 } /* Name.Variable.Class */
760
+ .highlight .vg { color: #008080 } /* Name.Variable.Global */
761
+ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
762
+ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */