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