@lyhue1991/wxgzh 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +432 -0
  2. package/assets/backgrounds//345/217/214/347/214/253.jpg +0 -0
  3. package/assets/backgrounds//345/217/244/351/243/216.jpg +0 -0
  4. package/assets/backgrounds//345/217/244/351/243/2162.jpg +0 -0
  5. package/assets/backgrounds//345/260/221/345/245/263/346/230/237/347/251/272.jpg +0 -0
  6. package/assets/backgrounds//345/277/203/345/277/203/347/233/270/345/215/260.jpg +0 -0
  7. package/assets/backgrounds//346/230/237/347/251/272.jpg +0 -0
  8. package/assets/backgrounds//346/240/221/346/234/250.jpg +0 -0
  9. package/assets/backgrounds//346/260/264/345/275/251.jpg +0 -0
  10. package/assets/backgrounds//346/260/264/346/274/253.jpg +0 -0
  11. package/assets/backgrounds//346/265/267/346/230/237.jpg +0 -0
  12. package/assets/backgrounds//346/265/267/346/273/251.jpg +0 -0
  13. package/assets/backgrounds//346/265/267/350/261/232.jpg +0 -0
  14. package/assets/backgrounds//346/270/205/346/231/250.jpg +0 -0
  15. package/assets/backgrounds//347/203/255/346/260/224/347/220/203.jpg +0 -0
  16. package/assets/backgrounds//347/214/253/345/222/252/345/245/263/345/255/251.jpg +0 -0
  17. package/assets/backgrounds//347/223/246/345/212/233.jpg +0 -0
  18. package/assets/backgrounds//347/272/242/345/217/266/351/243/230/351/243/230.jpg +0 -0
  19. package/assets/backgrounds//350/212/261/346/234/265.jpg +0 -0
  20. package/assets/backgrounds//351/243/216/350/275/246.jpg +0 -0
  21. package/assets/backgrounds//351/273/204/346/230/217.jpg +0 -0
  22. package/bin/wxgzh.js +3 -0
  23. package/dist/cli/config.js +62 -0
  24. package/dist/cli/cover.js +39 -0
  25. package/dist/cli/fix.js +38 -0
  26. package/dist/cli/index.js +161 -0
  27. package/dist/cli/md2html.js +49 -0
  28. package/dist/cli/publish.js +56 -0
  29. package/dist/core/converter.js +656 -0
  30. package/dist/core/cover.js +164 -0
  31. package/dist/core/fixer.js +97 -0
  32. package/dist/core/parser.js +105 -0
  33. package/dist/core/themes.js +59 -0
  34. package/dist/core/wechat.js +162 -0
  35. package/dist/types.js +2 -0
  36. package/dist/utils/config.js +89 -0
  37. package/dist/utils/fs.js +20 -0
  38. package/dist/utils/logger.js +18 -0
  39. package/dist/utils/tls.js +46 -0
  40. package/package.json +47 -0
  41. package/spec.md +490 -0
  42. package/styles/black.css +600 -0
  43. package/styles/blue.css +616 -0
  44. package/styles/brown.css +620 -0
  45. package/styles/custom.css +8 -0
  46. package/styles/default.css +227 -0
  47. package/styles/green.css +617 -0
  48. package/styles/orange.css +617 -0
  49. package/styles/red.css +617 -0
  50. package/styles/yellow.css +202 -0
@@ -0,0 +1,616 @@
1
+ ::marker {
2
+ font-size: 14px;
3
+ }
4
+
5
+
6
+ html {
7
+ font-size: 16px;
8
+ }
9
+
10
+ html, body {
11
+ background-color: #f3f2ee;
12
+ font-family: Arail,Microsoft YaHei;
13
+ color: #1f0909;
14
+ line-height: 1.5em;
15
+ }
16
+
17
+
18
+ #write {
19
+ max-width: 40em;
20
+ }
21
+ @media only screen and (min-width: 1000px) {
22
+ #write {max-width: 960px;}
23
+ }
24
+
25
+
26
+ @media only screen and (min-width: 1400px) {
27
+ #write {max-width: 1080px;}
28
+ }
29
+
30
+ @media only screen and (min-width: 1900px) {
31
+ #write {max-width: 1180px;}
32
+ }
33
+
34
+ ol li {
35
+ list-style-type: decimal;
36
+ list-style-position: outside;
37
+ }
38
+ ul li {
39
+ list-style-type: disc;
40
+ list-style-position: outside;
41
+ }
42
+
43
+ ol,
44
+ ul {
45
+ list-style: none;
46
+ }
47
+
48
+ table {
49
+ border-collapse: collapse;
50
+ border-spacing: 0;
51
+ }
52
+
53
+ h1,
54
+ h2,
55
+ h3,
56
+ h4,
57
+ h5,
58
+ h6 {
59
+ font-family: Microsoft YaHei;
60
+ padding-bottom: 0.3em;
61
+ border-bottom: 1px solid #d8dee4;
62
+ font-weight: bold;
63
+ margin-bottom: 1.5em;
64
+ }
65
+ h1 {
66
+ font-size: 30px;
67
+ /*30 / 16*/
68
+ line-height: 1.6em;
69
+ /* 48 / 30*/
70
+ margin-top: 2em;
71
+ }
72
+
73
+ h2{
74
+ font-size: 25px;
75
+ padding: 10px 10px 10px 10px; /* 上、右、下、左的内边距分别为10px、20px、15px、25px */
76
+ line-height: 1.15;
77
+ /*24 / 21*/
78
+ margin-top: 1.85em;
79
+ /*48 / 21*/
80
+ margin-bottom: 1.15em;
81
+ /*24 / 21*/
82
+ background:#2891DB;
83
+ color:#fff;
84
+ }
85
+
86
+ h3 {
87
+ font-size: 20px;
88
+ /*21 / 16*/
89
+ line-height: 1.15;
90
+ /*24 / 21*/
91
+ margin-top: 2.285714em;
92
+ /*48 / 21*/
93
+ margin-bottom: 1.15em;
94
+ /*24 / 21*/
95
+ }
96
+
97
+ h4 {
98
+ font-size: 16px;
99
+ /*18 / 16*/
100
+ margin-top: 2.67em;
101
+ /*48 / 18*/
102
+ }
103
+ /* links */
104
+
105
+
106
+
107
+ pre {
108
+ line-height: 1.4em;
109
+ display: block;
110
+ white-space: pre-wrap;
111
+ word-break: break-word;
112
+ }
113
+
114
+ pre code {
115
+ font-size: 14px;
116
+ color: #fff;
117
+ border-radius: 3px;
118
+ display: block;
119
+ white-space: pre-wrap;
120
+ word-break: break-word;
121
+ overflow: auto;
122
+ background-color: #000;
123
+ }
124
+
125
+ code {
126
+ color: #c7254e;
127
+ white-space: pre-wrap;
128
+ word-break: break-word;
129
+ padding: 3px;
130
+ border-radius: 3px;
131
+ display: inline;
132
+ }
133
+
134
+
135
+ a {
136
+ text-decoration: none;
137
+ color: #065588;
138
+ }
139
+ a:hover,
140
+ a:active {
141
+ text-decoration: underline;
142
+ }
143
+ /* block spacing */
144
+
145
+ p {
146
+ margin: 1.2em 3%;
147
+ }
148
+
149
+
150
+
151
+ blockquote, q {
152
+ border: 2px dotted #dddddd;
153
+ border-radius: 0.7em;
154
+ padding: 0 10px;
155
+ color: #c7254e;
156
+ quotes: none;
157
+ margin: auto 3%;
158
+ }
159
+
160
+ /* tables */
161
+ .md-meta,.md-before, .md-after {
162
+ color:#999;
163
+ }
164
+
165
+ table {
166
+ margin-bottom: 1.5em;
167
+ /*24 / 16*/
168
+ font-size: 1em;
169
+ /* width: 100%; */
170
+ }
171
+ thead th,
172
+ tfoot th {
173
+ padding: .25em .25em .25em .4em;
174
+ text-transform: uppercase;
175
+ }
176
+ th {
177
+ text-align: left;
178
+ }
179
+ td {
180
+ vertical-align: top;
181
+ padding: .5em .25em .5em .4em;
182
+ }
183
+
184
+ .md-fences {
185
+ color: #0079bb;
186
+ }
187
+
188
+
189
+
190
+
191
+
192
+ tt {
193
+ font-size: .875em;
194
+ line-height: 1.714285em;
195
+ }
196
+
197
+ p + ul,
198
+ p + ol{
199
+ margin-top: .5em;
200
+ }
201
+
202
+ h3 + ul,
203
+ h4 + ul,
204
+ h5 + ul,
205
+ h6 + ul,
206
+ h3 + ol,
207
+ h4 + ol,
208
+ h5 + ol,
209
+ h6 + ol {
210
+ margin-top: .5em;
211
+ }
212
+
213
+ li > ul,
214
+ li > ol {
215
+ margin-top: inherit;
216
+ margin-bottom: 0;
217
+ }
218
+
219
+ li ol>li {
220
+ list-style-type: lower-alpha;
221
+ }
222
+
223
+ li li ol>li{
224
+ list-style-type: lower-roman;
225
+ }
226
+
227
+ h2,
228
+ h3 {
229
+ margin-bottom: .75em;
230
+ }
231
+ hr {
232
+ border-top: none;
233
+ border-right: none;
234
+ border-bottom: 1px solid;
235
+ border-left: none;
236
+ }
237
+ h1 {
238
+ border-color: #c5c5c5;
239
+ }
240
+ blockquote {
241
+
242
+ border-color: #bababa;
243
+ }
244
+
245
+ blockquote ul,
246
+ blockquote ol {
247
+ margin-left:0;
248
+ }
249
+
250
+ .ty-table-edit {
251
+ background-color: transparent;
252
+ }
253
+ thead {
254
+ background-color: #dadada;
255
+ }
256
+ tr:nth-child(even) {
257
+ background: #e8e7e7;
258
+ }
259
+ hr {
260
+ border-color: #c5c5c5;
261
+ }
262
+ .task-list{
263
+ }
264
+
265
+ .md-task-list-item {
266
+ list-style-type: none;
267
+ }
268
+
269
+ .md-task-list-item > input:before {
270
+ content: '\221A';
271
+ display: inline-block;
272
+
273
+ height: 1.6em;
274
+ vertical-align: middle;
275
+ text-align: center;
276
+ color: #ddd;
277
+ background-color: #F3F2EE;
278
+ }
279
+
280
+ .md-task-list-item > input:checked:before,
281
+ .md-task-list-item > input[checked]:before{
282
+ color: inherit;
283
+ }
284
+
285
+ #write pre.md-meta-block {
286
+ min-height: 1.875em;
287
+ color: #555;
288
+ border: 0px;
289
+ background: transparent;
290
+ margin-top: -4px;
291
+ margin-left: 1em;
292
+ margin-top: 1em;
293
+ }
294
+
295
+ .md-image>.md-meta {
296
+ color: #9B5146;
297
+ }
298
+
299
+ .md-image>.md-meta{
300
+ font-family: Microsoft YaHei;
301
+ }
302
+
303
+
304
+ #write>h3.md-focus:before{
305
+ left: -1.5em;
306
+ color:#999;
307
+ border-color:#999;
308
+ }
309
+ #write>h4.md-focus:before{
310
+ left: -1.5em;
311
+ top: .25em;
312
+ color:#999;
313
+ border-color:#999;
314
+ }
315
+ #write>h5.md-focus:before{
316
+ color:#999;
317
+ border-color:#999;
318
+ }
319
+ #write>h6.md-focus:before{
320
+ left: -1.5em;
321
+ top: 0.3125em;
322
+ color:#999;
323
+ border-color:#999;
324
+ }
325
+
326
+ .md-toc:focus .md-toc-content{
327
+ margin-top: 19px;
328
+ }
329
+
330
+ .md-toc-content:empty:before{
331
+ color: #065588;
332
+ }
333
+ .md-toc-item {
334
+ color: #065588;
335
+ }
336
+
337
+ #write div.md-toc-tooltip {
338
+ background-color: #f3f2ee;
339
+ }
340
+
341
+ #typora-sidebar {
342
+ background-color: #f3f2ee;
343
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);
344
+ }
345
+
346
+ .pin-outline #typora-sidebar {
347
+ background: inherit;
348
+ box-shadow: none;
349
+ border-right: 1px dashed;
350
+ }
351
+
352
+ .pin-outline #typora-sidebar:hover .outline-title-wrapper {
353
+ border-left:1px dashed;
354
+ }
355
+
356
+ .outline-item:hover {
357
+ background-color: #dadada;
358
+ border-left: 28px solid #dadada;
359
+ border-right: 18px solid #dadada;
360
+ }
361
+
362
+ .typora-node .outline-item:hover {
363
+ border-right: 28px solid #dadada;
364
+ }
365
+
366
+ .outline-expander:before {
367
+ content: "\f105";
368
+ font-family: FontAwesome;
369
+ font-size:12px;
370
+ top: 1px;
371
+ }
372
+
373
+ .outline-expander:hover:before,
374
+ .outline-item-open>.outline-item>.outline-expander:before {
375
+ content: "\f107";
376
+ }
377
+
378
+ .modal-content {
379
+ background-color: #f3f2ee;
380
+ }
381
+
382
+ .auto-suggest-container ul li {
383
+ list-style-type: none;
384
+ }
385
+
386
+ /** UI for electron */
387
+
388
+ .megamenu-menu,
389
+ #top-titlebar, #top-titlebar *,
390
+ .megamenu-content {
391
+ background: #f3f2ee;
392
+ color: #1f0909;
393
+ }
394
+
395
+ .megamenu-menu-header {
396
+ border-bottom: 1px dashed #202B33;
397
+ }
398
+
399
+ .megamenu-menu {
400
+ box-shadow: none;
401
+ border-right: 1px dashed;
402
+ }
403
+
404
+ header, .context-menu, .megamenu-content, footer {
405
+ font-family: Microsoft YaHei;
406
+ color: #1f0909;
407
+ }
408
+
409
+ #megamenu-back-btn {
410
+ color: #1f0909;
411
+ border-color: #1f0909;
412
+ }
413
+
414
+ .megamenu-menu-header #megamenu-menu-header-title:before {
415
+ color: #1f0909;
416
+ }
417
+
418
+ .megamenu-menu-list li a:hover, .megamenu-menu-list li a.active {
419
+ color: inherit;
420
+ background-color: #e8e7df;
421
+ }
422
+
423
+ .long-btn:hover {
424
+ background-color: #e8e7df;
425
+ }
426
+
427
+ #recent-file-panel tbody tr:nth-child(2n-1) {
428
+ background-color: transparent !important;
429
+ }
430
+
431
+ .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
432
+ color: inherit;
433
+ }
434
+
435
+ .megamenu-menu-panel .btn {
436
+ background-color: #D2D1D1;
437
+ }
438
+
439
+ .btn-default {
440
+ background-color: transparent;
441
+ }
442
+
443
+ .typora-sourceview-on #toggle-sourceview-btn,
444
+ .ty-show-word-count #footer-word-count {
445
+ background: #c7c5c5;
446
+ }
447
+
448
+ #typora-quick-open {
449
+ background-color: inherit;
450
+ }
451
+
452
+ .md-diagram-panel {
453
+ margin-top: 8px;
454
+ }
455
+
456
+
457
+ .file-list-item-summary {
458
+ opacity: 1;
459
+ }
460
+
461
+ .file-list-item {
462
+ color: #777;
463
+ }
464
+
465
+ .file-list-item.active {
466
+ background-color: inherit;
467
+ color: black;
468
+ }
469
+
470
+ .ty-side-sort-btn.active {
471
+ background-color: inherit;
472
+ }
473
+
474
+ .file-list-item.active .file-list-item-file-name {
475
+ font-weight: bold;
476
+ }
477
+
478
+ .file-list-item{
479
+ opacity:1 !important;
480
+ }
481
+
482
+ .file-library-node.active>.file-node-background{
483
+ background-color: rgba(32, 43, 51, 0.63);
484
+ }
485
+
486
+ .file-tree-node.active>.file-node-content{
487
+ color: white;
488
+ }
489
+
490
+ .md-task-list-item>input {
491
+ margin-left: -1.7em;
492
+ }
493
+
494
+ input {
495
+ border: 1px solid #aaa;
496
+ }
497
+
498
+ .megamenu-menu-header #megamenu-menu-header-title,
499
+ .megamenu-menu-header:hover,
500
+ .megamenu-menu-header:focus {
501
+ color: inherit;
502
+ }
503
+
504
+ .dropdown-menu .divider {
505
+ border-color: #e5e5e5;
506
+ opacity: 1;
507
+ }
508
+
509
+ /* https://github.com/typora/typora-issues/issues/2046 */
510
+ .os-windows-7 strong,
511
+ .os-windows-7 strong {
512
+ }
513
+
514
+ .ty-preferences .btn-default {
515
+ background: transparent;
516
+ }
517
+
518
+ .ty-preferences .window-header {
519
+ border-bottom: 1px dashed #202B33;
520
+ box-shadow: none;
521
+ }
522
+
523
+ #sidebar-loading-template, #sidebar-loading-template.file-list-item {
524
+ color: #777;
525
+ }
526
+
527
+ .searchpanel-search-option-btn.active {
528
+ background: #777;
529
+ color: white;
530
+ }
531
+
532
+ /**
533
+ 代码高亮
534
+ */
535
+
536
+ .highlight .hll { background-color: #ffffcc }
537
+ .highlight .c { color: #60a0b0; font-style: italic } /* Comment */
538
+ .highlight .err { border: 1px solid #FF0000 } /* Error */
539
+ .highlight .k { color: #007020; font-weight: bold } /* Keyword */
540
+ .highlight .o { color: #666666 } /* Operator */
541
+ .highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
542
+ .highlight .cp { color: #007020 } /* Comment.Preproc */
543
+ .highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
544
+ .highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
545
+ .highlight .gd { color: #A00000 } /* Generic.Deleted */
546
+ .highlight .ge { font-style: italic } /* Generic.Emph */
547
+ .highlight .gr { color: #FF0000 } /* Generic.Error */
548
+ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
549
+ .highlight .gi { color: #00A000 } /* Generic.Inserted */
550
+ .highlight .go { color: #808080 } /* Generic.Output */
551
+ .highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
552
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
553
+ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
554
+ .highlight .gt { color: #0040D0 } /* Generic.Traceback */
555
+ .highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
556
+ .highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
557
+ .highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
558
+ .highlight .kp { color: #007020 } /* Keyword.Pseudo */
559
+ .highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
560
+ .highlight .kt { color: #902000 } /* Keyword.Type */
561
+ .highlight .m { color: #40a070 } /* Literal.Number */
562
+ .highlight .s { color: #4070a0 } /* Literal.String */
563
+ .highlight .na { color: #4070a0 } /* Name.Attribute */
564
+ .highlight .nb { color: #007020 } /* Name.Builtin */
565
+ .highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
566
+ .highlight .no { color: #60add5 } /* Name.Constant */
567
+ .highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
568
+ .highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
569
+ .highlight .ne { color: #007020 } /* Name.Exception */
570
+ .highlight .nf { color: #06287e } /* Name.Function */
571
+ .highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
572
+ .highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
573
+ .highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
574
+ .highlight .nv { color: #bb60d5 } /* Name.Variable */
575
+ .highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
576
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
577
+ .highlight .mf { color: #40a070 } /* Literal.Number.Float */
578
+ .highlight .mh { color: #40a070 } /* Literal.Number.Hex */
579
+ .highlight .mi { color: #40a070 } /* Literal.Number.Integer */
580
+ .highlight .mo { color: #40a070 } /* Literal.Number.Oct */
581
+ .highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
582
+ .highlight .sc { color: #4070a0 } /* Literal.String.Char */
583
+ .highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
584
+ .highlight .s2 { color: #4070a0 } /* Literal.String.Double */
585
+ .highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
586
+ .highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
587
+ .highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
588
+ .highlight .sx { color: #c65d09 } /* Literal.String.Other */
589
+ .highlight .sr { color: #235388 } /* Literal.String.Regex */
590
+ .highlight .s1 { color: #4070a0 } /* Literal.String.Single */
591
+ .highlight .ss { color: #517918 } /* Literal.String.Symbol */
592
+ .highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
593
+ .highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
594
+ .highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
595
+ .highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
596
+ .highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */
597
+
598
+
599
+
600
+ /*大纲紧凑*/
601
+ .outline-item {
602
+ padding-top: 0px;
603
+ padding-bottom: 0px;
604
+ }
605
+ .outline-h1{
606
+ font-size: 14px !important;
607
+ }
608
+
609
+ .outline-h3,.outline-h4{
610
+ font-size: 13px !important;
611
+ }
612
+ .outline-expander {
613
+ }
614
+ li.md-list-item {
615
+ line-height: 120%;
616
+ }