vditor 3.8.7 → 3.8.11

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 (68) hide show
  1. package/README.md +13 -13
  2. package/dist/index.css +2 -2
  3. package/dist/index.min.js +1 -15353
  4. package/dist/js/highlight.js/styles/abap.css +7 -96
  5. package/dist/js/highlight.js/styles/algol.css +7 -104
  6. package/dist/js/highlight.js/styles/algol_nu.css +7 -52
  7. package/dist/js/highlight.js/styles/arduino.css +7 -95
  8. package/dist/js/highlight.js/styles/autumn.css +7 -76
  9. package/dist/js/highlight.js/styles/borland.css +7 -94
  10. package/dist/js/highlight.js/styles/bw.css +7 -108
  11. package/dist/js/highlight.js/styles/colorful.css +7 -90
  12. package/dist/js/highlight.js/styles/dracula.css +9 -86
  13. package/dist/js/highlight.js/styles/emacs.css +7 -103
  14. package/dist/js/highlight.js/styles/friendly.css +7 -119
  15. package/dist/js/highlight.js/styles/fruity.css +7 -76
  16. package/dist/js/highlight.js/styles/github.css +7 -106
  17. package/dist/js/highlight.js/styles/igor.css +7 -90
  18. package/dist/js/highlight.js/styles/lovelace.css +7 -77
  19. package/dist/js/highlight.js/styles/manni.css +7 -75
  20. package/dist/js/highlight.js/styles/monokai.css +7 -77
  21. package/dist/js/highlight.js/styles/monokailight.css +7 -114
  22. package/dist/js/highlight.js/styles/murphy.css +7 -78
  23. package/dist/js/highlight.js/styles/native.css +7 -103
  24. package/dist/js/highlight.js/styles/paraiso-dark.css +7 -79
  25. package/dist/js/highlight.js/styles/paraiso-light.css +7 -78
  26. package/dist/js/highlight.js/styles/pastie.css +7 -115
  27. package/dist/js/highlight.js/styles/perldoc.css +7 -80
  28. package/dist/js/highlight.js/styles/pygments.css +7 -95
  29. package/dist/js/highlight.js/styles/rainbow_dash.css +7 -103
  30. package/dist/js/highlight.js/styles/rrt.css +7 -119
  31. package/dist/js/highlight.js/styles/solarized-dark.css +7 -91
  32. package/dist/js/highlight.js/styles/solarized-dark256.css +7 -90
  33. package/dist/js/highlight.js/styles/solarized-light.css +7 -90
  34. package/dist/js/highlight.js/styles/swapoff.css +7 -99
  35. package/dist/js/highlight.js/styles/tango.css +7 -106
  36. package/dist/js/highlight.js/styles/trac.css +7 -105
  37. package/dist/js/highlight.js/styles/vim.css +7 -89
  38. package/dist/js/highlight.js/styles/vs.css +7 -75
  39. package/dist/js/highlight.js/styles/xcode.css +7 -111
  40. package/dist/js/i18n/zh_CN.js +1 -1
  41. package/dist/js/katex/mhchem.min.js +1 -0
  42. package/dist/js/lute/lute.min.js +9 -8
  43. package/dist/method.min.js +1 -2346
  44. package/dist/ts/ui/initUI.d.ts +1 -0
  45. package/dist/ts/wysiwyg/index.d.ts +2 -0
  46. package/dist/types/index.d.ts +4 -3
  47. package/package.json +7 -7
  48. package/src/index.ts +12 -2
  49. package/src/ts/.DS_Store +0 -0
  50. package/src/ts/hint/index.ts +20 -11
  51. package/src/ts/markdown/codeRender.ts +8 -4
  52. package/src/ts/markdown/mathRender.ts +29 -27
  53. package/src/ts/markdown/outlineRender.ts +5 -1
  54. package/src/ts/markdown/previewRender.ts +12 -4
  55. package/src/ts/markdown/speechRender.ts +6 -2
  56. package/src/ts/preview/index.ts +0 -1
  57. package/src/ts/toolbar/Info.ts +1 -1
  58. package/src/ts/ui/initUI.ts +19 -5
  59. package/src/ts/upload/index.ts +4 -4
  60. package/src/ts/util/editorCommonEvent.ts +2 -2
  61. package/src/ts/util/fixBrowserBehavior.ts +4 -4
  62. package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +12 -5
  63. package/src/ts/wysiwyg/index.ts +8 -2
  64. package/CHANGELOG.md +0 -1072
  65. package/dist/images/.DS_Store +0 -0
  66. package/dist/js/.DS_Store +0 -0
  67. package/dist/js/lute/.DS_Store +0 -0
  68. package/dist/js/mathjax/.DS_Store +0 -0
@@ -1,10 +1,12 @@
1
- /* Background */ .highlight-chroma { color: #e5e5e5; background-color: #000000 }
1
+ /* Background */ .highlight-bg { color: #e5e5e5; background-color: #000000 }
2
+ /* PreWrapper */ .highlight-chroma { color: #e5e5e5; background-color: #000000; }
2
3
  /* Error */ .highlight-chroma .highlight-err { color: #ff0000 }
3
4
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #191919 }
6
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #727272 }
7
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #727272 }
5
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
6
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #191919 }
7
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #727272 }
8
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #727272 }
9
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
8
10
  /* Keyword */ .highlight-chroma .highlight-k { color: #ffffff; font-weight: bold }
9
11
  /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #ffffff; font-weight: bold }
10
12
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #ffffff; font-weight: bold }
@@ -48,97 +50,3 @@
48
50
  /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
49
51
  /* GenericSubheading */ .highlight-chroma .highlight-gu { font-weight: bold }
50
52
  /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
51
-
52
-
53
- /*
54
- xt256.css
55
-
56
- Contact: initbar [at] protonmail [dot] ch
57
- : github.com/initbar
58
- */
59
-
60
- .hljs {
61
- display: block;
62
- overflow-x: auto;
63
- color: #eaeaea;
64
- background: #000;
65
- padding: 0.5em;
66
- }
67
-
68
- .hljs-subst {
69
- color: #eaeaea;
70
- }
71
-
72
- .hljs-emphasis {
73
- font-style: italic;
74
- }
75
-
76
- .hljs-strong {
77
- font-weight: bold;
78
- }
79
-
80
- .hljs-builtin-name,
81
- .hljs-type {
82
- color: #eaeaea;
83
- }
84
-
85
- .hljs-params {
86
- color: #da0000;
87
- }
88
-
89
- .hljs-literal,
90
- .hljs-number,
91
- .hljs-name {
92
- color: #ff0000;
93
- font-weight: bolder;
94
- }
95
-
96
- .hljs-comment {
97
- color: #969896;
98
- }
99
-
100
- .hljs-selector-id,
101
- .hljs-quote {
102
- color: #00ffff;
103
- }
104
-
105
- .hljs-template-variable,
106
- .hljs-variable,
107
- .hljs-title {
108
- color: #00ffff;
109
- font-weight: bold;
110
- }
111
-
112
- .hljs-selector-class,
113
- .hljs-keyword,
114
- .hljs-symbol {
115
- color: #fff000;
116
- }
117
-
118
- .hljs-string,
119
- .hljs-bullet {
120
- color: #00ff00;
121
- }
122
-
123
- .hljs-tag,
124
- .hljs-section {
125
- color: #000fff;
126
- }
127
-
128
- .hljs-selector-tag {
129
- color: #000fff;
130
- font-weight: bold;
131
- }
132
-
133
- .hljs-attribute,
134
- .hljs-built_in,
135
- .hljs-regexp,
136
- .hljs-link {
137
- color: #ff00ff;
138
- }
139
-
140
- .hljs-meta {
141
- color: #fff;
142
- font-weight: bolder;
143
- }
144
-
@@ -1,11 +1,13 @@
1
- /* Background */ .highlight-chroma { background-color: #f8f8f8 }
1
+ /* Background */ .highlight-bg { background-color: #f8f8f8 }
2
+ /* PreWrapper */ .highlight-chroma { background-color: #f8f8f8; }
2
3
  /* Other */ .highlight-chroma .highlight-x { color: #000000 }
3
4
  /* Error */ .highlight-chroma .highlight-err { color: #a40000 }
4
5
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
5
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
6
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #dfdfdf }
7
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
6
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
7
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #dfdfdf }
8
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
9
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
10
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
9
11
  /* Keyword */ .highlight-chroma .highlight-k { color: #204a87; font-weight: bold }
10
12
  /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #204a87; font-weight: bold }
11
13
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #204a87; font-weight: bold }
@@ -80,104 +82,3 @@
80
82
  /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #a40000; font-weight: bold }
81
83
  /* GenericUnderline */ .highlight-chroma .highlight-gl { color: #000000; text-decoration: underline }
82
84
  /* TextWhitespace */ .highlight-chroma .highlight-w { color: #f8f8f8; text-decoration: underline }
83
-
84
- /* a11y-light theme */
85
- /* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
86
- /* @author: ericwbailey */
87
-
88
- /* Comment */
89
- .hljs-comment,
90
- .hljs-quote {
91
- color: #696969;
92
- }
93
-
94
- /* Red */
95
- .hljs-variable,
96
- .hljs-template-variable,
97
- .hljs-tag,
98
- .hljs-name,
99
- .hljs-selector-id,
100
- .hljs-selector-class,
101
- .hljs-regexp,
102
- .hljs-deletion {
103
- color: #d91e18;
104
- }
105
-
106
- /* Orange */
107
- .hljs-number,
108
- .hljs-built_in,
109
- .hljs-builtin-name,
110
- .hljs-literal,
111
- .hljs-type,
112
- .hljs-params,
113
- .hljs-meta,
114
- .hljs-link {
115
- color: #aa5d00;
116
- }
117
-
118
- /* Yellow */
119
- .hljs-attribute {
120
- color: #aa5d00;
121
- }
122
-
123
- /* Green */
124
- .hljs-string,
125
- .hljs-symbol,
126
- .hljs-bullet,
127
- .hljs-addition {
128
- color: #008000;
129
- }
130
-
131
- /* Blue */
132
- .hljs-title,
133
- .hljs-section {
134
- color: #007faa;
135
- }
136
-
137
- /* Purple */
138
- .hljs-keyword,
139
- .hljs-selector-tag {
140
- color: #7928a1;
141
- }
142
-
143
- .hljs {
144
- display: block;
145
- overflow-x: auto;
146
- background: #fefefe;
147
- color: #545454;
148
- padding: 0.5em;
149
- }
150
-
151
- .hljs-emphasis {
152
- font-style: italic;
153
- }
154
-
155
- .hljs-strong {
156
- font-weight: bold;
157
- }
158
-
159
- @media screen and (-ms-high-contrast: active) {
160
- .hljs-addition,
161
- .hljs-attribute,
162
- .hljs-built_in,
163
- .hljs-builtin-name,
164
- .hljs-bullet,
165
- .hljs-comment,
166
- .hljs-link,
167
- .hljs-literal,
168
- .hljs-meta,
169
- .hljs-number,
170
- .hljs-params,
171
- .hljs-string,
172
- .hljs-symbol,
173
- .hljs-type,
174
- .hljs-quote {
175
- color: highlight;
176
- }
177
-
178
- .hljs-keyword,
179
- .hljs-selector-tag {
180
- font-weight: bold;
181
- }
182
- }
183
-
@@ -1,10 +1,12 @@
1
- /* Background */ .highlight-chroma { background-color: #ffffff }
1
+ /* Background */ .highlight-bg { background-color: #ffffff }
2
+ /* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
2
3
  /* Error */ .highlight-chroma .highlight-err { color: #a61717; background-color: #e3d2d2 }
3
4
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
6
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
5
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
6
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
7
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
9
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
8
10
  /* Keyword */ .highlight-chroma .highlight-k { font-weight: bold }
9
11
  /* KeywordConstant */ .highlight-chroma .highlight-kc { font-weight: bold }
10
12
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { font-weight: bold }
@@ -64,103 +66,3 @@
64
66
  /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #aa0000 }
65
67
  /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
66
68
  /* TextWhitespace */ .highlight-chroma .highlight-w { color: #bbbbbb }
67
-
68
- /*
69
-
70
- Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
71
-
72
- */
73
-
74
- .hljs {
75
- display: block;
76
- overflow-x: auto;
77
- padding: 0.5em;
78
- background: #F0F0F0;
79
- }
80
-
81
-
82
- /* Base color: saturation 0; */
83
-
84
- .hljs,
85
- .hljs-subst {
86
- color: #444;
87
- }
88
-
89
- .hljs-comment {
90
- color: #888888;
91
- }
92
-
93
- .hljs-keyword,
94
- .hljs-attribute,
95
- .hljs-selector-tag,
96
- .hljs-meta-keyword,
97
- .hljs-doctag,
98
- .hljs-name {
99
- font-weight: bold;
100
- }
101
-
102
-
103
- /* User color: hue: 0 */
104
-
105
- .hljs-type,
106
- .hljs-string,
107
- .hljs-number,
108
- .hljs-selector-id,
109
- .hljs-selector-class,
110
- .hljs-quote,
111
- .hljs-template-tag,
112
- .hljs-deletion {
113
- color: #880000;
114
- }
115
-
116
- .hljs-title,
117
- .hljs-section {
118
- color: #880000;
119
- font-weight: bold;
120
- }
121
-
122
- .hljs-regexp,
123
- .hljs-symbol,
124
- .hljs-variable,
125
- .hljs-template-variable,
126
- .hljs-link,
127
- .hljs-selector-attr,
128
- .hljs-selector-pseudo {
129
- color: #BC6060;
130
- }
131
-
132
-
133
- /* Language color: hue: 90; */
134
-
135
- .hljs-literal {
136
- color: #78A960;
137
- }
138
-
139
- .hljs-built_in,
140
- .hljs-bullet,
141
- .hljs-code,
142
- .hljs-addition {
143
- color: #397300;
144
- }
145
-
146
-
147
- /* Meta color: hue: 200 */
148
-
149
- .hljs-meta {
150
- color: #1f7199;
151
- }
152
-
153
- .hljs-meta-string {
154
- color: #4d99bf;
155
- }
156
-
157
-
158
- /* Misc effects */
159
-
160
- .hljs-emphasis {
161
- font-style: italic;
162
- }
163
-
164
- .hljs-strong {
165
- font-weight: bold;
166
- }
@@ -1,10 +1,12 @@
1
- /* Background */ .highlight-chroma { color: #cccccc; background-color: #000000 }
1
+ /* Background */ .highlight-bg { color: #cccccc; background-color: #000000 }
2
+ /* PreWrapper */ .highlight-chroma { color: #cccccc; background-color: #000000; }
2
3
  /* Error */ .highlight-chroma .highlight-err { }
3
4
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #191919 }
6
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #666666 }
7
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #666666 }
5
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
6
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #191919 }
7
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #666666 }
8
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #666666 }
9
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
8
10
  /* Keyword */ .highlight-chroma .highlight-k { color: #cdcd00 }
9
11
  /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #cdcd00 }
10
12
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #00cd00 }
@@ -57,87 +59,3 @@
57
59
  /* GenericSubheading */ .highlight-chroma .highlight-gu { color: #800080; font-weight: bold }
58
60
  /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #0044dd }
59
61
  /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
60
-
61
- /*
62
-
63
- Qt Creator dark color scheme
64
-
65
- */
66
-
67
- .hljs {
68
- display: block;
69
- overflow-x: auto;
70
- padding: 0.5em;
71
- background: #000000;
72
- }
73
-
74
- .hljs,
75
- .hljs-subst,
76
- .hljs-tag,
77
- .hljs-title {
78
- color: #aaaaaa;
79
- }
80
-
81
- .hljs-strong,
82
- .hljs-emphasis {
83
- color: #a8a8a2;
84
- }
85
-
86
- .hljs-bullet,
87
- .hljs-quote,
88
- .hljs-number,
89
- .hljs-regexp,
90
- .hljs-literal {
91
- color: #ff55ff;
92
- }
93
-
94
- .hljs-code
95
- .hljs-selector-class {
96
- color: #aaaaff;
97
- }
98
-
99
- .hljs-emphasis,
100
- .hljs-stronge,
101
- .hljs-type {
102
- font-style: italic;
103
- }
104
-
105
- .hljs-keyword,
106
- .hljs-selector-tag,
107
- .hljs-function,
108
- .hljs-section,
109
- .hljs-symbol,
110
- .hljs-name {
111
- color: #ffff55;
112
- }
113
-
114
- .hljs-attribute {
115
- color: #ff5555;
116
- }
117
-
118
- .hljs-variable,
119
- .hljs-params,
120
- .hljs-class .hljs-title {
121
- color: #8888ff;
122
- }
123
-
124
- .hljs-string,
125
- .hljs-selector-id,
126
- .hljs-selector-attr,
127
- .hljs-selector-pseudo,
128
- .hljs-type,
129
- .hljs-built_in,
130
- .hljs-builtin-name,
131
- .hljs-template-tag,
132
- .hljs-template-variable,
133
- .hljs-addition,
134
- .hljs-link {
135
- color: #ff55ff;
136
- }
137
-
138
- .hljs-comment,
139
- .hljs-meta,
140
- .hljs-deletion {
141
- color: #55ffff;
142
- }
143
-
@@ -1,10 +1,12 @@
1
- /* Background */ .highlight-chroma { background-color: #ffffff }
1
+ /* Background */ .highlight-bg { background-color: #ffffff }
2
+ /* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
2
3
  /* Error */ .highlight-chroma .highlight-err { }
3
4
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
6
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
5
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
6
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
7
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
9
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
8
10
  /* Keyword */ .highlight-chroma .highlight-k { color: #0000ff }
9
11
  /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #0000ff }
10
12
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #0000ff }
@@ -40,73 +42,3 @@
40
42
  /* GenericPrompt */ .highlight-chroma .highlight-gp { font-weight: bold }
41
43
  /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
42
44
  /* GenericSubheading */ .highlight-chroma .highlight-gu { font-weight: bold }
43
-
44
- /*
45
-
46
- Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>
47
-
48
- */
49
- .hljs {
50
- display: block;
51
- overflow-x: auto;
52
- padding: 0.5em;
53
- background: white;
54
- color: black;
55
- }
56
-
57
- .hljs-comment,
58
- .hljs-quote,
59
- .hljs-variable {
60
- color: #008000;
61
- }
62
-
63
- .hljs-keyword,
64
- .hljs-selector-tag,
65
- .hljs-built_in,
66
- .hljs-name,
67
- .hljs-tag {
68
- color: #00f;
69
- }
70
-
71
- .hljs-string,
72
- .hljs-title,
73
- .hljs-section,
74
- .hljs-attribute,
75
- .hljs-literal,
76
- .hljs-template-tag,
77
- .hljs-template-variable,
78
- .hljs-type,
79
- .hljs-addition {
80
- color: #a31515;
81
- }
82
-
83
- .hljs-deletion,
84
- .hljs-selector-attr,
85
- .hljs-selector-pseudo,
86
- .hljs-meta {
87
- color: #2b91af;
88
- }
89
-
90
- .hljs-doctag {
91
- color: #808080;
92
- }
93
-
94
- .hljs-attr {
95
- color: #f00;
96
- }
97
-
98
- .hljs-symbol,
99
- .hljs-bullet,
100
- .hljs-link {
101
- color: #00b0e8;
102
- }
103
-
104
-
105
- .hljs-emphasis {
106
- font-style: italic;
107
- }
108
-
109
- .hljs-strong {
110
- font-weight: bold;
111
- }
112
-
@@ -1,10 +1,12 @@
1
- /* Background */ .highlight-chroma { background-color: #ffffff }
1
+ /* Background */ .highlight-bg { background-color: #ffffff }
2
+ /* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
2
3
  /* Error */ .highlight-chroma .highlight-err { color: #000000 }
3
4
  /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
- /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
- /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
6
- /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
- /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
5
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
6
+ /* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
7
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
+ /* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
9
+ /* Line */ .highlight-chroma .highlight-line { display: flex; }
8
10
  /* Keyword */ .highlight-chroma .highlight-k { color: #a90d91 }
9
11
  /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #a90d91 }
10
12
  /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #a90d91 }
@@ -65,109 +67,3 @@
65
67
  /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #177500 }
66
68
  /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #633820 }
67
69
  /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #633820 }
68
-
69
- /*
70
-
71
- XCode style (c) Angel Garcia <angelgarcia.mail@gmail.com>
72
-
73
- */
74
-
75
- .hljs {
76
- display: block;
77
- overflow-x: auto;
78
- padding: 0.5em;
79
- background: #fff;
80
- color: black;
81
- }
82
-
83
- /* Gray DOCTYPE selectors like WebKit */
84
- .xml .hljs-meta {
85
- color: #c0c0c0;
86
- }
87
-
88
- .hljs-comment,
89
- .hljs-quote {
90
- color: #007400;
91
- }
92
-
93
- .hljs-tag,
94
- .hljs-attribute,
95
- .hljs-keyword,
96
- .hljs-selector-tag,
97
- .hljs-literal,
98
- .hljs-name {
99
- color: #aa0d91;
100
- }
101
-
102
- .hljs-variable,
103
- .hljs-template-variable {
104
- color: #3F6E74;
105
- }
106
-
107
- .hljs-code,
108
- .hljs-string,
109
- .hljs-meta-string {
110
- color: #c41a16;
111
- }
112
-
113
- .hljs-regexp,
114
- .hljs-link {
115
- color: #0E0EFF;
116
- }
117
-
118
- .hljs-title,
119
- .hljs-symbol,
120
- .hljs-bullet,
121
- .hljs-number {
122
- color: #1c00cf;
123
- }
124
-
125
- .hljs-section,
126
- .hljs-meta {
127
- color: #643820;
128
- }
129
-
130
-
131
- .hljs-class .hljs-title,
132
- .hljs-type,
133
- .hljs-built_in,
134
- .hljs-builtin-name,
135
- .hljs-params {
136
- color: #5c2699;
137
- }
138
-
139
- .hljs-attr {
140
- color: #836C28;
141
- }
142
-
143
- .hljs-subst {
144
- color: #000;
145
- }
146
-
147
- .hljs-formula {
148
- background-color: #eee;
149
- font-style: italic;
150
- }
151
-
152
- .hljs-addition {
153
- background-color: #baeeba;
154
- }
155
-
156
- .hljs-deletion {
157
- background-color: #ffc8bd;
158
- }
159
-
160
- .hljs-selector-id,
161
- .hljs-selector-class {
162
- color: #9b703f;
163
- }
164
-
165
- .hljs-doctag,
166
- .hljs-strong {
167
- font-weight: bold;
168
- }
169
-
170
- .hljs-emphasis {
171
- font-style: italic;
172
- }
173
-
@@ -24,7 +24,7 @@ window.VditorI18n = {
24
24
  'edit-mode': '切换编辑模式',
25
25
  'emoji': '表情',
26
26
  'export': '导出',
27
- 'fileTypeError': '文件类型不允许上传',
27
+ 'fileTypeError': '文件类型不允许上传,请压缩后再试',
28
28
  'footnoteRef': '脚注标识',
29
29
  'fullscreen': '全屏切换',
30
30
  'generate': '生成中',