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